mirror of
https://github.com/remko/waforth
synced 2024-12-27 09:59:29 +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
|
/wasm-micro-runtime
|
||||||
/wasmtime-*
|
/wasmtime-*
|
||||||
/*.tgz
|
/*.tgz
|
||||||
|
/run_sieve.f
|
||||||
|
|
|
@ -120,6 +120,12 @@ check:
|
||||||
grep "Hello, Forth" test.out
|
grep "Hello, Forth" test.out
|
||||||
rm 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
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
1
src/waforthc/.gitignore
vendored
1
src/waforthc/.gitignore
vendored
|
@ -3,3 +3,4 @@
|
||||||
/_waforth*
|
/_waforth*
|
||||||
/hello
|
/hello
|
||||||
/waforth*.tgz
|
/waforth*.tgz
|
||||||
|
/sieve
|
||||||
|
|
|
@ -94,6 +94,9 @@ waforth_core.wasm: ../waforth.wat
|
||||||
|
|
||||||
.PHONY: package
|
.PHONY: package
|
||||||
|
|
||||||
|
sieve:
|
||||||
|
./waforthc --ccflag=-O2 --output=sieve --init="90000000 sieve" ../examples/sieve.f
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check:
|
check:
|
||||||
-rm -f test test.out
|
-rm -f test test.out
|
||||||
|
|
Loading…
Reference in a new issue