arise-sustech commited on
Commit
9683109
1 Parent(s): a1f8a46

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -48,7 +48,8 @@ for opt_state in OPT:
48
  subprocess.run(compile_command, shell=True, check=True)
49
 
50
  input_asm = ''
51
- asm = read_file(output_file+'.s')
 
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
 
48
  subprocess.run(compile_command, shell=True, check=True)
49
 
50
  input_asm = ''
51
+ with open(output_file+'.s') as f:#asm file
52
+ asm= f.read()
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