The way of programming language practice

Source: Internet
Author: User

1

The scripting language is slower than the compiled language, because the compiler language can pin a value to a location that can be accessed through the generated machine directives. The scripting language must be looked up from the table each time.

Approximate structure:

A preprocessor for removing annotations, whitespace, marking tokens, and expanding abbreviations;

compiler, used to generate assembly language.

Connector to connect the library.

Assembler: produces machine language.

The early-at-the-time compiler compiles C + + into the C language, which is then compiled into assembly language by the C compiler.


--------------------------------------------------------------------------------------------------------------- --------------------------------------

The whole process of compiling is probably as follows:

The symbol table serves the entire compilation process.

With semantic analysis as the front and back end, the task of the front end is to analyze semantics, and the back end task is to generate equivalent code.

Often the compilation process is divided into multiple passes (each pass is a small part of the compilation process), each pass can correspond to different front and back pass.

The way of programming language practice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.