Possible Solution

Content

heim$ gcc -std=c11 factorial.s test_factorial.c
heim$ echo 4 | ./a.out
n = n! = 24
heim$