2026-07-16 13:46:13 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# Run script.
|
|
|
|
|
# CAR (Cool ARM Ripoff) copyright (c) 2026 David J Goeke. All rights reserved.
|
|
|
|
|
# Unauthorized (re)distribution is prohibited.
|
|
|
|
|
|
2026-07-18 19:28:11 -05:00
|
|
|
FILES="processor.c fpu.c misc.c load_store.c operations.c helpers.c main.c"
|
|
|
|
|
CFLAGS="-O2 -Wall" #"-g -O0 -fsanitize=address"
|
2026-07-16 13:46:13 -05:00
|
|
|
TARGET="vm"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gcc $CFLAGS $FILES -o $TARGET
|
|
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
|
echo
|
|
|
|
|
./$TARGET $@
|
|
|
|
|
else
|
|
|
|
|
echo "Error: gcc failed with error code" $?
|
|
|
|
|
fi
|