(work in progress) "C" code version of Pounce (parser and interpreter) intended for micro controllers, or web assembly.
gcc -o ./dist/repl ./src/repl/repl.c ./src/linenoise/linenoise.c
./dist/repl
(possibly permissions need to be adjusted chmod +x ./dist/repl
)
./dist/repl -help
./dist/repl -i tests/source.p
./test-runner.sh
tests that exercise the stack and queue (internal workings) DataTypes
gcc -o ./dist/tests ./src/tests.c
./dist/tests
Running this may take a few seconds since it does a simple stress test.
valgrind --leak-check=yes ./dist/repl -i tests/all-tests.p
export PICO_SDK_PATH=<myRepoPath>/pico-sdk
cd build-pico
cmake ..
make pounce_repl
objdump --all pounce_repl.elf | grep flash_binary_end
this reports a memory address so subtract XIP_BASE (0x10000000) to get the size in flash.