2021-01-29 14:17:59 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# format code
|
2021-01-29 15:14:37 -05:00
|
|
|
clang-format -i uxnasm.c
|
2021-01-29 14:17:59 -05:00
|
|
|
clang-format -i uxn.c
|
2021-02-08 15:16:39 -05:00
|
|
|
clang-format -i cpu.h
|
|
|
|
clang-format -i cpu.c
|
2021-01-29 14:17:59 -05:00
|
|
|
|
|
|
|
# remove old
|
2021-01-29 15:14:37 -05:00
|
|
|
rm -f ./uxnasm
|
2021-01-29 14:17:59 -05:00
|
|
|
rm -f ./uxn
|
2021-01-30 00:56:19 -05:00
|
|
|
rm -f ./boot.rom
|
2021-01-29 14:17:59 -05:00
|
|
|
|
|
|
|
# debug(slow)
|
2021-01-29 15:14:37 -05:00
|
|
|
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
|
2021-02-08 15:16:39 -05:00
|
|
|
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 cpu.c uxn.c -o uxn
|
2021-01-29 14:17:59 -05:00
|
|
|
|
|
|
|
# run
|
2021-02-08 15:16:39 -05:00
|
|
|
./uxnasm examples/hello.usm boot.rom
|
2021-01-30 00:56:19 -05:00
|
|
|
./uxn boot.rom
|