目的:混合编译start.s和helloworld.c,打印helloworld.
但运行结果提示:
源码如下:
start.s:
helloworld.c
skyeye.conf
当start.s不向helloworld传参时,helloworld能成功打印,但start.s会无限循环调函数.这是为什么啊?哪个大神能解惑?多谢
编译命令:
arm-elf-gcc -c helloworld.c
arm-elf-gcc -c start.s
arm-elf-ld -e _start -Ttext 0x00000000 helloworld.o start.o -o helloworld
arm-elf-objcopy -O binary helloworld helloworld.bin
skyeye