dev/nasm/flags/build.sh

13 lines
190 B
Bash
Raw Normal View History

#!/bin/sh
target=flags
rm -f $target
nasm -f elf ${target}.asm
gcc -o ${target} ${target}.c ${target}.o
for i in 1 2 3 4 5 6 7 8 9 10 11 12 ; do
echo "fact($i) = `./${target} $i`"
done