Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is a compiler?

Shulou Source: shulou.com Published: 2022-06-02 18:09:57 10月04日 Update

This article is about what a compiler is. Xiao Bian thinks it is quite practical, so share it for everyone to make a reference. Let's follow the editor and have a look.

Translating a source program written in a high-level programming language into an object program is called a compiler. Compilers take source programs written in high-level programming languages as input and object programs expressed in assembly or machine languages as output.

A program that translates a source program written in a high-level programming language into an object program (.OBJ) is called a compiler.

Compiler (compiling program), also known as compiler, refers to the translation of source programs written in high-level programming languages into equivalent machine language format object programs. Compilers belong to translation programs implemented by generative approach. It takes source programs written in high-level programming languages as input and object programs expressed in assembly or machine languages as output. The compiled target program usually goes through a run-time phase in order to run with the support of the run-time program, process the initial data, and calculate the desired calculation results.

The compiler must parse the source program and synthesize it into an object program. First, check the correctness of the source program and decompose it into several basic components; second, according to these basic components, establish corresponding equivalent target program parts. To accomplish this, compilers create tables during analysis and transform source programs into intermediate language forms that are easy to reference and manipulate during analysis and synthesis.

Thank you for reading! About what is a compiler program to share here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge. If you think the article is good, you can share it so that more people can see it!

Tags: Programs compilers languages compilers source programs targets advanced programming design machines analysis execution assembly language content components more equivalence stages processing input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple macOS Shulou Information Redmi MariaDB