Add Arduino host sample.

Tested on Arduino Uno (ATMega328P)
    Sketch uses 9950 bytes (30%) of program storage space. Maximum is 32256 bytes.
    Global variables use 1254 bytes (61%) of dynamic memory, leaving 794 bytes for local variables. Maximum is 2048 bytes.
This commit is contained in:
Toby Jaffey 2025-12-06 22:29:29 +00:00
parent 047c9e3853
commit 6d12ce5a80
8 changed files with 968 additions and 0 deletions

View file

@ -153,6 +153,7 @@ int main(int argc, char *argv[]) {
* [emulator](emulator) vm host which loads a binary and runs to completion, handling multiple ioreq types
* [emulator-mini](emulator-mini) minimal vm host (shown above), with baked in bytecode
* [emulator-parallel](emulator-parallel) parallel vm host running multiple vm instances concurrently, with baked in bytecode
* [emulator-arduino](emulator-arduino) vm host as Arduino sketch (tested on Arduino Uno ATmega328P, uses 9950 bytes of flash/1254 bytes RAM)
* [apps/helloworld](apps/helloworld) C hello world program
* [apps/sketch](apps/sketch) C Arduino/Wiring/Processing type program in `setup()` and `loop()` style
* [apps/rust-hello](apps/rust-hello) Rust hello world program