aarch64工具链使用

aarch64工具链使用:

aarch64-none-elf-gcc -S xxx.c -o xxxx.s:将源程序转换成.s文件。(-S的S需要大写)
aarch64-none-elf-gcc -c xxx.c -o xxxx.o:将源程序转换成.o文件
aarch64-none-elf-as: 汇编器,将.s转换成.o 。示例:aarch64-none-elf-as xxx.s -o xxxx.o
aarch64-none-elf-ld: 链接器,将 .o 链接成elf。示例:aarch64-none-elf-ld xx.o xxx.o -o xxx.elf
aarch64-none-elf-objdump: 反汇编,可以将elf文件反汇编。示例:aarch64-none-elf-objdump -S xxx.elf > xxxx.text

你可能感兴趣的:(笔记,linux,arm)