Home  >  Article  >  Backend Development  >  After the C language source program is compiled, what is the suffix of the generated file?

After the C language source program is compiled, what is the suffix of the generated file?

尚
Original
2020-03-05 13:30:5026563browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn