Compiler/virtual machine interpreter: Difference between revisions
Compiler/virtual machine interpreter (view source)
Revision as of 23:08, 17 February 2022
, 2 years ago→{{header|ATS}}
Line 609:
=={{header|ATS}}==
{{works with|ATS|Postiats 0.4.1}}
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.
<lang ats>(*
Line 2,385 ⟶ 2,391:
(********************************************************************)</lang>
{{out}}
$ patscc -O3 -DATS_MEMALLOC_LIBC -o vm-postiats vm-postiats.dats -latslib && ./lex compiler-tests/count.t | ./parse | ./gen | ./vm-postiats
<pre>count is: 1
count is: 2
count is: 3
count is: 4
count is: 5
count is: 6
count is: 7
count is: 8
count is: 9</pre>
=={{header|AWK}}==
|