- 积分
 - 919
 
 
贡献3555 
飞刀1374 FD
注册时间2020-9-4
在线时间328 小时
 
 
 
  
 
 | 
 
 
发表于 2021-10-12 09:36:19
|
显示全部楼层
 
 
 
可以用交叉编译进行编译; 
交叉编译helloworld: 
forlinx@ubuntu:~/hello$ aarch64-linux-gnu-gcc hello.c -o helloworld 
forlinx@ubuntu:~/hello$ ls 
hello  hello.c  helloworld 
forlinx@ubuntu:~/hello$ file helloworld  
helloworld: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=cbbb36ff5a597e7883cd1a639cccc2aa34584585, not stripped 
 |   
 
 
 
 |