13 lines
190 B
Bash
13 lines
190 B
Bash
|
#!/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
|
||
|
|
||
|
|