Joke Collection Website - Bulletin headlines - Briefly describe what is the source language target language intermediate language

Briefly describe what is the source language target language intermediate language

A source language is a language that can lead to another language.

The language in which a computer program is originally written is the source language.

The source language generally refers to the language used to write the source program, which must be translated into machine language before it can be used in the computer.

Target language is a method of inputting the target language using a specific language.

Intermediate language (intermediate code) is a syntax-oriented, equivalent internal representation code of a source program that is easily translated into a target program.

Its degree of understandability and ease of generating target code is between that of the source language and the target language.

:

Whether it is a symbolic language or a high-level language, a translation program is needed to translate it into machine language.

A program that translates a symbolic language is called a symbolic assembler or assembler.

For an assembler, the input is a symbolic language program and the output is a machine language program.

Translation work is relatively simple. Its main task is to replace symbols with machine codes.

A program that translates a high-level language is called a compiler.

For a compiler, the input is a high-level language program and the output is a machine language program.

For high-level languages, it does not have a one-to-one correspondence with machine language.

The machine language generated by the compiler has a one-to-one correspondence with the high-level language, that is, each high-level language statement is equivalent to multiple machine instructions.

Whether it is an assembler or a compiler, there is an input program and an output program.

This input program is called the source program, and the language used as input is called the source language.

For an assembler, the source program is a symbolic language program; for a compiler, the source program is a high-level language program.