arise-sustech
commited on
Commit
•
64de7f6
1
Parent(s):
8e4181e
Update README.md
Browse files
README.md
CHANGED
@@ -47,7 +47,8 @@ for opt_state in OPT:
|
|
47 |
subprocess.run(compile_command, shell=True, check=True)
|
48 |
|
49 |
input_asm = ''
|
50 |
-
|
|
|
51 |
asm = asm.split('Disassembly of section .text:')[-1].strip()
|
52 |
for tmp in asm.split('\n'):
|
53 |
tmp_asm = tmp.split('\t')[-1]#remove the binary code
|
|
|
47 |
subprocess.run(compile_command, shell=True, check=True)
|
48 |
|
49 |
input_asm = ''
|
50 |
+
with open(output_file+'.s') as f:#asm file
|
51 |
+
asm= f.read()
|
52 |
asm = asm.split('Disassembly of section .text:')[-1].strip()
|
53 |
for tmp in asm.split('\n'):
|
54 |
tmp_asm = tmp.split('\t')[-1]#remove the binary code
|