Skip to content

Commit

Permalink
Stateless (#1)
Browse files Browse the repository at this point in the history
* Allow passing argv to the main entry function

* Export malloc

* Support re-invokation of the Refal VM entry function, add example with animation
  • Loading branch information
butvinm authored Nov 11, 2024
1 parent 910c9a0 commit b57f786
Show file tree
Hide file tree
Showing 9 changed files with 613 additions and 120 deletions.
2 changes: 1 addition & 1 deletion examples/canvas/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export R05ROOT="/home/butvinm/Dev/lame-refal"
export R05PATH="$R05ROOT/lib:$R05ROOT/src:$R05ROOT/examples/canvas"
R05CCOMP="clang -DLAMELIB -target wasm32 -ffreestanding --no-standard-libraries -fno-builtin -Wl,--export-table -Wl,--no-entry -Wl,--export=main -Wl,--allow-undefined -o main.wasm" $R05ROOT/bin/refal05c main refal05rts Library Canvas
R05CCOMP="clang -DLAMELIB -target wasm32 -ffreestanding --no-standard-libraries -fno-builtin -Wl,--export-table -Wl,--no-entry -Wl,--export=main -Wl,--export=malloc -Wl,--allow-undefined -o main.wasm" $R05ROOT/bin/refal05c main refal05rts Library Canvas
Loading

0 comments on commit b57f786

Please sign in to comment.