Files
MP-SPDZ/Scripts/compile-emulate.py
Marcel Keller 6cc3fccef0 Maintenance.
2023-05-09 14:50:53 +10:00

18 lines
450 B
Python
Executable File

#!/usr/bin/env python3
import os, sys
sys.path.insert(0, os.path.dirname(sys.argv[0]) + '/..')
from Compiler.compilerLib import Compiler
compiler = Compiler()
compiler.prep_compile(build=False)
compiler.execute = True
compiler.options.execute = 'emulate'
compiler.options.ring = compiler.options.ring or '64'
compiler.options.keep_cisc = compiler.options.keep_cisc or ''
compiler.build()
prog = compiler.compile_file()
compiler.local_execution()