/* Compile and link using the commnads below arm-elf-gcc -c -mcpu=arm7tdmi -O2 -g -Wall -o fact.o fact.c arm-elf-ld -o flash.elf cstart.o tact.o Next use arm-elf-insight to debug. */ unsigned int fact(unsigned int n) { if (n == 1) return 1; else return n*fact(n-1); } void main() { fact(5); }