mirror of
https://github.com/remko/waforth
synced 2024-12-25 09:59:07 +01:00
waforthc,standalone: Add sieve example
This commit is contained in:
parent
c6deb5eba3
commit
97cc42cb89
4 changed files with 12 additions and 1 deletions
1
src/standalone/.gitignore
vendored
1
src/standalone/.gitignore
vendored
|
@ -3,3 +3,4 @@
|
|||
/wasm-micro-runtime
|
||||
/wasmtime-*
|
||||
/*.tgz
|
||||
/run_sieve.f
|
||||
|
|
|
@ -120,7 +120,13 @@ check:
|
|||
grep "Hello, Forth" test.out
|
||||
rm test.out
|
||||
|
||||
|
||||
run_sieve.f: ../examples/sieve.f
|
||||
(cat $< && echo "90000000 sieve") > $@
|
||||
|
||||
.PHONY: run-sieve
|
||||
run-sieve: run_sieve.f
|
||||
./waforth $<
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f waforth_core.wasm waforth_core.h $(OBJECTS) waforth *.exe *.tgz *.zip test.out
|
||||
|
|
1
src/waforthc/.gitignore
vendored
1
src/waforthc/.gitignore
vendored
|
@ -3,3 +3,4 @@
|
|||
/_waforth*
|
||||
/hello
|
||||
/waforth*.tgz
|
||||
/sieve
|
||||
|
|
|
@ -94,6 +94,9 @@ waforth_core.wasm: ../waforth.wat
|
|||
|
||||
.PHONY: package
|
||||
|
||||
sieve:
|
||||
./waforthc --ccflag=-O2 --output=sieve --init="90000000 sieve" ../examples/sieve.f
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
-rm -f test test.out
|
||||
|
|
Loading…
Reference in a new issue