Joke Collection Website - News headlines - In the principle of compilation, what is a source language, what is a target language, what is a translator, what is a compiler, what is an interpreter, and what is a T-chart?

In the principle of compilation, what is a source language, what is a target language, what is a translator, what is a compiler, what is an interpreter, and what is a T-chart?

In the process of vc translating c/c code into asm files

c/c is the source language asm is the target language vc is the translator

vc Compile asm into an obj file and finally link the library file into a binary file. vc is the compiler

In java, you need to run a java virtual machine, such as sun's java.exe. java.exe is the interpreter

c language a machine c language b machine C language b machine

a machine c language a machine

Figure a Figure b Figure c

On top In the figure, figure (a) is the existing compiler, figure (c) is the compiler that needs to be obtained, and figure (b) is the compiler that needs to be written. As long as we compile (b) on (a), we can Get (c)

For example

Compiler a is an existing compiler that translates the C language into a compiler that can run on the Intel host. We hope to get The compiler c that runs on the Intel machine and translates the c language into one that can run on the Apple host. Then we only need to write a compiler b in c language that translates the c language into one that can run on the Apple host. On compiler a Compile compiler b written in c language to get compiler c