From 318a675ea69156180465edf92dc62751019457e6 Mon Sep 17 00:00:00 2001 From: David Mak Date: Mon, 29 Jul 2024 13:19:47 +0800 Subject: [PATCH] standalone: Rename -m32 to -i386 --- nac3standalone/demo/check_demo.sh | 2 +- nac3standalone/demo/run_demo.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nac3standalone/demo/check_demo.sh b/nac3standalone/demo/check_demo.sh index 272b4ea0..716a9472 100755 --- a/nac3standalone/demo/check_demo.sh +++ b/nac3standalone/demo/check_demo.sh @@ -21,7 +21,7 @@ echo ">>>>>> Running $demo with the Python interpreter" ./interpret_demo.py "$demo" > interpreted.log echo "...... Trying NAC3's 32-bit code generator output" -./run_demo.sh -m32 --out run_32.log "${nac3args[@]}" "$demo" +./run_demo.sh -i386 --out run_32.log "${nac3args[@]}" "$demo" diff -Nau interpreted.log run_32.log echo "...... Trying NAC3's 64-bit code generator output" diff --git a/nac3standalone/demo/run_demo.sh b/nac3standalone/demo/run_demo.sh index 5d1380fc..b9e25d85 100755 --- a/nac3standalone/demo/run_demo.sh +++ b/nac3standalone/demo/run_demo.sh @@ -11,7 +11,7 @@ declare -a nac3args while [ $# -ge 1 ]; do case "$1" in --help) - echo "Usage: run_demo.sh [--help] [--out OUTFILE] [--debug] [-m32] -- [NAC3ARGS...]" + echo "Usage: run_demo.sh [--help] [--out OUTFILE] [--debug] [-i386] -- [NAC3ARGS...]" exit ;; --out) @@ -21,8 +21,8 @@ while [ $# -ge 1 ]; do --debug) debug=1 ;; - -m32) - m32=1 + -i386) + i386=1 ;; --) shift @@ -51,7 +51,7 @@ fi rm -f ./*.o ./*.bc demo -if [ -z "$m32" ]; then +if [ -z "$i386" ]; then $nac3standalone "${nac3args[@]}" clang -c -std=gnu11 -Wall -Wextra -O3 -o demo.o demo.c -- 2.44.2