Home > Article > Backend Development > After the C language source program is compiled, what is the suffix of the generated file?
The suffix of the C language source file is .c, the suffix of the compiled file is .obj, and the suffix of the connected executable file is .exe.
Recommended: "c Language Tutorial"
The compiler converts source code into binary in the following four steps:
Preprocessing, compilation, Assembly, linking
Preprocessing: Precompilation actions, such as macros, static members, etc. are processed at this stage.
Compilation: Generate assembly files, during this process the compiler will optimize the source code
Assembly: Generate assembly files into target files, which are actually executable (Unix:.o Win: .obj)
Link: Link the target file into an executable file (Win:.exe)
For more programming-related content, please pay attention to the php Chinese websiteIntroduction to Programmingcolumn!
The above is the detailed content of After the C language source program is compiled, what is the suffix of the generated file?. For more information, please follow other related articles on the PHP Chinese website!