Nimbin[12]?Embedded / snake_compiler / snake_SDL/make_compiler.sh

snake_compiler git · main

Snake compiled to a bare-metal RISC-V microcontroller

riscv embedded bare-metal c snake · first commit 2026-01-18 · last commit 2026-01-18 (8 months ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/compilerbau/snake_compiler

C 95.2% Markdown 3.3%
git clone https://git.christianimmanuel.de/embedded/snake_compiler.gitwget https://git.christianimmanuel.de/embedded/snake_compiler/archive/snake_compiler.tar.gz
snake_SDL/make_compiler.sh 337 B · 10 lines raw
make -C src/ clean &&
make -C src/ build EXTRA_CFLAGS="\
                  -DWALL_COLLISION=0 \
                  -DSNAKE_START_LENGTH=7 \
                  -DMAX_BRIGHTNESS=7 \
                  -DSNAKE_COLOR_R=0 \
                  -DSNAKE_COLOR_G=7 \
                  -DSNAKE_COLOR_B=0" &&
make -C src/ flash &&
make -C src/ monitor