arise-sustech commited on
Commit
64de7f6
1 Parent(s): 8e4181e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
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
- asm = read_file(output_file+'.s')
 
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