Initial release of CAR
This commit is contained in:
19
run
Executable file
19
run
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Run script.
|
||||
# CAR (Cool ARM Ripoff) copyright (c) 2026 David J Goeke. All rights reserved.
|
||||
# Unauthorized (re)distribution is prohibited.
|
||||
|
||||
FILES="processor.c load_store.c operations.c helpers.c main.c"
|
||||
CFLAGS="" #"-g -O0 -fsanitize=address"
|
||||
TARGET="vm"
|
||||
|
||||
|
||||
gcc $CFLAGS $FILES -o $TARGET
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo
|
||||
./$TARGET $@
|
||||
else
|
||||
echo "Error: gcc failed with error code" $?
|
||||
fi
|
||||
Reference in New Issue
Block a user