Skip to content

A Pounce core (parser and interpreter) written in C, targeting microprocessors and webAssembly.

Notifications You must be signed in to change notification settings

pounce-lang/c-core

Repository files navigation

Pounce C-CORE

(work in progress) "C" code version of Pounce (parser and interpreter) intended for micro controllers, or web assembly.

build the (non-microprocessor) REPL with gcc

gcc -o ./dist/repl ./src/repl/repl.c ./src/linenoise/linenoise.c

./dist/repl

(possibly permissions need to be adjusted chmod +x ./dist/repl)

Try the REPL Help

./dist/repl -help

Feed input to the REPL

./dist/repl -i tests/source.p

Pounce language tests

./test-runner.sh

internal ADT tests

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 check for memory leaks

valgrind --leak-check=yes ./dist/repl -i tests/all-tests.p

build rp2040 pico (microprocessor) REPL

export PICO_SDK_PATH=<myRepoPath>/pico-sdk

cd build-pico

cmake ..

make pounce_repl

the size of the pico image

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.

About

A Pounce core (parser and interpreter) written in C, targeting microprocessors and webAssembly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published