gcc 编译命令

gcc -E hello.c -o hello.i      预处理

gcc -S hello.i -o hello.s       编译

gcc -c hello.s -o hello.o       汇编

                                            链接

so文件

 gcc demo.c -fPIC -o libdemo.so

 

原文地址:https://www.cnblogs.com/wangfeicom/p/14883495.html