From 1c1d1b8fe4dc357397b6f5f39d84b4192f9a1b36 Mon Sep 17 00:00:00 2001 From: Mau Magnaguagno Date: Fri, 5 Jan 2024 01:42:03 -0300 Subject: [PATCH] Compact clear tape for C mode in MindFreak main --- MindFreak.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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