52ky 发表于 2022-10-6 10:38:31

C语言编译全过程

C言语编译全进程编译的概念:编译程序读取源程序(字符流),对之进行词法和语法的分析,将高档言语命令转换为功能等效的汇编代码,再由汇编程序转换为机器言语,并且依照操作系统对可执行文件格式的请求连接生成可执行程序。?编译的完整进程:C源程序--gt;预编译管理(.c)--gt;编译、优化程序(.s、.asm)--gt;汇编程序(.obj、.o、.a、.ko)--gt;连接程序(.exe、.elf、.axf等)
C言语编译全进程.doc

(The concept of whole process compilation of C language compilation: the compiler reads the source program (character stream), analyzes its morphology and syntax, converts high-end speech commands into functionally equivalent assembly code, and then converts the assembly program into machine language, and generates the executable program according to the request of the operating system for the executable file format.? Complete compilation process: C source program -- gt; Precompilation Management (. c) -- gt; Compile and optimize programs (. s,. asm) -- gt; Assembler (. obj,. o,. a,. ko) -- gt; Connector (. exe,. elf,. axf, etc.)
C Language Compilation Whole Process.doc)




页: [1]
查看完整版本: C语言编译全过程