Skip to content

Instantly share code, notes, and snippets.

@sposterkil
Created December 12, 2014 21:49
Show Gist options
  • Save sposterkil/2b960c22b00358f36b60 to your computer and use it in GitHub Desktop.
Save sposterkil/2b960c22b00358f36b60 to your computer and use it in GitHub Desktop.
This works fine...
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