progs/bfc0.scala
changeset 636 96a91e4a8ac8
parent 634 2c46407af618
child 637 27f71d2755f0
--- a/progs/bfc0.scala	Thu Sep 26 12:59:33 2019 +0100
+++ b/progs/bfc0.scala	Thu Sep 26 14:12:11 2019 +0100
@@ -46,6 +46,8 @@
   fw.close()
 }
 
+// running the c-compiler over the transpiled
+// BF program and running the result
 import sys.process._
 
 def compile_run(prog: String) = {
@@ -62,8 +64,10 @@
   (end - start)/(n * 1.0e9)
 }
 
+// mandelbrot program
+val b0 = load_bff("mandelbrot.bf")
 
-println(s"${time_needed(1, compile_run(load_bff("mandelbrot.bf")))} secs")
+println(s"${time_needed(1, compile_run(b0))} secs")