Compiler/virtual machine interpreter: Difference between revisions
Compiler/virtual machine interpreter (view source)
Revision as of 23:15, 17 February 2022
, 2 years ago→{{header|ATS}}
m (→{{header|ATS}}) |
|||
Line 613:
Compile with ‘patscc -O3 -DATS_MEMALLOC_LIBC -o vm-postiats vm-postiats.dats -latslib’
With the optimizer turned on, like this, the program should run pretty fast, despite being relatively safe against going out of bounds, etc. Try it on the ASCII Mandelbrot example.
<lang ats>(*
Line 938:
fn
parse_digits {n, i, j : int | 0 <= i; i <= j; j <= n}
vmint =
let
|