progs/while-compiler-arrays/compile_bfc.sc
changeset 747 448a7a78aa86
parent 745 905b60a029bf
child 757 b0ff6121cb9a
equal deleted inserted replaced
746:1779f8488689 747:448a7a78aa86
    11 //       * 65k for the transpiled WHILE program 
    11 //       * 65k for the transpiled WHILE program 
    12 //       * parsing uses around 30 secs using fastparse
    12 //       * parsing uses around 30 secs using fastparse
    13 //       * the jasmin assembly file is 236k
    13 //       * the jasmin assembly file is 236k
    14 //       * the resulting Java program takes about 20 secs 
    14 //       * the resulting Java program takes about 20 secs 
    15 //
    15 //
    16 // Call with (X being 0,1,..,5)
    16 // Call with (X being 0,1,..,4)
    17 //
    17 //
    18 //  amm compile_bfc.sc all
    18 //  amm compile_bfc.sc all
    19 //  amm compile_bfc.sc bfcX
    19 //  amm compile_bfc.sc bfcX
    20 
    20 
    21 
    21 
   293 @doc(" Mandelbrot set.")
   293 @doc(" Mandelbrot set.")
   294 @main
   294 @main
   295 def bfc4() = bf_run(read(pwd / "mandelbrot.bf"), "mand")
   295 def bfc4() = bf_run(read(pwd / "mandelbrot.bf"), "mand")
   296 
   296 
   297 
   297 
   298 // this hits the capacity of the JVM, even with optimisations
   298 // this unfortunately hits the capacity of the JVM, even with optimisations
   299 //@doc(" Coolatz serries up to 30.")
   299 //@doc(" Coolatz serries up to 30.")
   300 //@main
   300 //@main
   301 //def bfc5() = bf_run(read(pwd / "collatz.bf"), "coll")
   301 //def bfc5() = bf_run(read(pwd / "collatz.bf"), "coll")
   302 
   302 
   303 
   303