mirror of https://git.sr.ht/~rabbits/uxn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
657 B
18 lines
657 B
#!/bin/bash |
|
|
|
# format code |
|
clang-format -i uxnasm.c |
|
clang-format -i uxn.c |
|
|
|
# remove old |
|
rm -f ./uxnasm |
|
rm -f ./uxn |
|
rm -f ./boot.rom |
|
|
|
# debug(slow) |
|
cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined uxnasm.c -o uxnasm |
|
cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined uxn.c -o uxn |
|
|
|
# run |
|
./uxnasm examples/arithmetic.usm boot.rom |
|
./uxn boot.rom
|
|
|