Home >Backend Development >C#.Net Tutorial >What program should be used to translate a program written in C language so that the computer can recognize it?

What program should be used to translate a program written in C language so that the computer can recognize it?

青灯夜游
青灯夜游Original
2020-08-31 17:35:5523675browse

Programs written in C language need to be translated with a "compiler" before the computer can recognize them. Programs written in C language must be translated into executable programs before they can be run on the computer. During this process, they must be processed by a compiler.

What program should be used to translate a program written in C language so that the computer can recognize it?

The instruction sequence composed of C language is called C source program, and the suffix of the source program file is ".c". The source program is compiled by a C compiler to generate a binary file (called an object file) with the suffix ".obj", and then a software called "Link" connects the object file with various library functions provided by the C language. Get up and generate an executable file with the suffix ".exe".

Compiler, compiling program, also called a compiler, refers to a translation program that translates a source program written in a high-level programming language into an equivalent target program in machine language format. . Compilers are translation programs implemented using a generative implementation approach. It takes a source program written in a high-level programming language as input, and a target program expressed in assembly language or machine language as output. The compiled target program usually also goes through a running stage in order to run with the support of the running program, process the initial data, and calculate the required calculation results.

Compiler phrases can be understood in two ways.

1. Compiling a program is an action that is translated into machine language binary code by a high-level programming language compiler based on compilation principle technology.

2. Compiler is a gerund, specifically referring to the software program that generates the compiler.

Related recommendations: c language tutorial video

The above is the detailed content of What program should be used to translate a program written in C language so that the computer can recognize it?. 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