Created
December 12, 2014 21:49
-
-
Save sposterkil/2b960c22b00358f36b60 to your computer and use it in GitHub Desktop.
This works fine...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("a.s", "w") as asm_temp: | |
asm_temp.write(get_asm(source_file)) | |
asm_temp.write(get_lib()) | |
with open("a.s", "r") as asm_temp: | |
log("> Compiling with gcc...") | |
subprocess.call(["gcc", | |
"-m32", | |
"-o", output_file.name, | |
asm_temp.name | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment