Home>Article>Backend Development> What is the extension of a executable C language program?

What is the extension of a executable C language program?

青灯夜游
青灯夜游 Original
2020-10-27 11:02:54 7068browse

The extension of a executable C language program is ".exe". After the C language program is compiled by the "compiler", a binary file with the suffix ".obj" is generated; then the "linker" connects this ".obj" file with various library functions provided by the C language. Generate an executable file with the suffix ".exe".

What is the extension of a executable C language program?

Tutorial recommendation: "c language tutorial video"

After the C language source program is compiled by the C language compiler , generate a binary file (called an object file) with the suffix ".OBJ", and finally a software called "Link" will connect this ".OBJ" file with various libraries provided by the C language. The functions are connected together to generate an executable file with the suffix ".EXE". Obviously C language cannot be executed immediately.

C language source program file extension: .c

Object file extension: .obj

Executable file extension: .exe

Source program : Programs can be written in high-level language or assembly language, and programs written in high-level language or assembly language are called source programs. The extension of C language source program is ".c". The source program cannot be executed directly on the computer. A "compiler" is required to compile the source program into binary form of code.

Target program: The binary code obtained by compiling the source program through the "compiler" is called the target program. The extension of the target program is ".obj".

Although the target code is already a machine instruction, it cannot be run yet because the target program has not solved the function calling problem. Each target program needs to be connected with the library function to form a complete executable program.

Executable program: The target program is connected with the library function to form a complete program that can be executed independently under the operating system, which is called an executable program. The extension of the executable program is ".exe".

For more programming-related knowledge, please visit:Introduction to Programming! !

The above is the detailed content of What is the extension of a executable C language program?. 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