1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 15:36:34 +00:00
Interlisp.maiko/bin/optck.sh

18 lines
235 B
Bash
Executable File

#!/bin/sh
#
# Check whether Assembler optimization is correct or not.
#
if [ -f ./optck ]; then
/bin/rm -f ./optck
fi
/bin/cc -O2 ../src/optck.c -o optck
res=`./optck`
if [ "$res" = "wrong" ]; then
echo -n "-Qoption as -O~M"
fi