diff --git a/MindFreak.rb b/MindFreak.rb index 49b0cb3..7427daa 100644 --- a/MindFreak.rb +++ b/MindFreak.rb @@ -453,7 +453,7 @@ def optimize(bytecode, blank_tape = false) file_c = "#{filename}.c" file_exe = "./#{filename}.exe" t = Time.now.to_f - File.write(file_c, MindFreak.to_c(program, tape, eof)) + File.write(file_c, MindFreak.to_c(program, bounds, eof)) if ['gcc', 'clang'].any? {|cc| system("#{cc} #{file_c} -o #{file_exe} -O2 -s")} puts "Compilation time: #{Time.now.to_f - t}s" # Execute