当前位置:网站首页>Basic process of program compilation

Basic process of program compilation

2022-06-10 09:46:00 Smoke, blue and rain

1. The tools and corresponding products used in the compilation process in the figure .
 The build process

2. Use the following gcc Compile command , Each sub process file can be generated step by step

gcc -E hello.c -o hello.i //  The preprocessor cpp
gcc -s hello.i -o hello.s //  compiler ccl
gcc -c hello.s -o hello.o //  Assembler as
gcc -o hello.o -o hello.exe //  The linker ld

3. Use the following gcc Compile command , Executable files can be generated directly

gcc hello.c -o newname //  You can customize the naming newname
原网站

版权声明
本文为[Smoke, blue and rain]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206100936090632.html