arise-sustech commited on
Commit
8791ca7
·
verified ·
1 Parent(s): 26ff8f2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -49,7 +49,8 @@ for opt_state in OPT:
49
  subprocess.run(compile_command, shell=True, check=True)
50
 
51
  input_asm = ''
52
- asm = read_file(output_file+'.s')
 
53
  asm = asm.split('Disassembly of section .text:')[-1].strip()
54
  for tmp in asm.split('\n'):
55
  tmp_asm = tmp.split('\t')[-1]#remove the binary code
 
49
  subprocess.run(compile_command, shell=True, check=True)
50
 
51
  input_asm = ''
52
+ with open(output_file+'.s') as f:#asm file
53
+ asm= f.read()
54
  asm = asm.split('Disassembly of section .text:')[-1].strip()
55
  for tmp in asm.split('\n'):
56
  tmp_asm = tmp.split('\t')[-1]#remove the binary code