dev/nasm/fact/build.sh

11 lines
186 B
Bash
Executable File

#!/bin/sh
target=1
rm -f $target
nasm -f elf64 ${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