Jump to content

Compiler/virtual machine interpreter: Difference between revisions

m
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}
(s : string n,
i : size_t i,
j : size_t j) :
vmint =
let
1,448

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.