关于自己写的应用程序的编译
请问一下,是否需要把自己写的应用程序放到app目录下,然后按照5.6节“单独编译app程序”,获得二进制可执行文件吗?还是可以用某个编译器,使用makefile文件直接编译我自己写的应用程序代码?谢谢!例如我想写一个打印hello world的C程序,应该如何进行编译?谢谢! 可以用交叉编译进行编译;
交叉编译helloworld:
forlinx@ubuntu:~/hello$ aarch64-linux-gnu-gcc hello.c -o helloworld
forlinx@ubuntu:~/hello$ ls
hellohello.chelloworld
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=cbbb36ff5a597e7883cd1a639cccc2aa34584585, not stripped
页:
[1]