Home  >  Article  >  Backend Development  >  What is the function of c compiler

What is the function of c compiler

尚
Original
2020-04-25 17:07:525910browse

What is the function of c compiler

The function of the C compiler is to compile the C source program into an object file. The purpose of compilation is to generate an object file corresponding to the source program, which includes checking whether the source program is correct.

c compiler is a set of software provided by computer manufacturers. 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.

Compilation is the process of using a compiler to generate a target program from a source program written in the source language. The five stages are lexical analysis, syntax analysis, semantic checking and intermediate code generation, code optimization, and target code generation. .

Mainly performs lexical analysis and syntax analysis, also known as source program analysis. During the analysis process, if any grammatical errors are found, prompt information will be given.

The above is the detailed content of What is the function of c compiler. 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