当前位置: 技术问答>linux和unix
gcc生成什么样的目标文件?
来源: 互联网 发布时间:2016-05-04
本文导语: 最近想看看gcc源代码(只看C的部分,下载的是gcc-core-4.0.0.tar.bz2),在看之前想先问一下,比如在linux下,gcc是直接生成elf目标文件还是生成汇编文件然后调用as汇编成elf目标文件? | When you i...
最近想看看gcc源代码(只看C的部分,下载的是gcc-core-4.0.0.tar.bz2),在看之前想先问一下,比如在linux下,gcc是直接生成elf目标文件还是生成汇编文件然后调用as汇编成elf目标文件?
|
When you invoke GCC, it normally does preprocessing, compilation, assembly and linking.
The “overall options” allow you to stop this process at an intermediate stage.
For example, the -c option says not to run the linker. Then the output consists of
object files output by the assembler.
gcc 当然是按部就班啦,不会直接生成目标文件
The “overall options” allow you to stop this process at an intermediate stage.
For example, the -c option says not to run the linker. Then the output consists of
object files output by the assembler.
gcc 当然是按部就班啦,不会直接生成目标文件