An interpreted language and a compiled language summary

Compiled languages ( English: Compiled Language) is a programming language type, by the compiler to implement. It is not interpreted language , like the interpreter to execute code sentence by sentence, but in the compiler, the first code compiled into machine code , and implement them. In theory, any programming language can be a compiled or literal style. The difference between them is only related to the application.

Generally, programs written in a compiled language, the execution speed of execution, usually faster than with programs written in interpreted language. Because the program at compile time, has been pre-compiled into machine code, can be executed directly, not as interpreted language, as an even more literal translation program.

But the first to be compiled before it can run the program, which also resulted in the disadvantage of a compiled language. In general, the speed of a compiled language program development and debugging time, are relatively long. Because then it is not interpreted language may finish line, or short program, executed immediately, immediately debug. Interpreted language usually make the overall program development with less time in the development process, the program division can also be more flexible, rapid test their ideas.

In order to improve the efficiency of a compiled language and the development of a real-time compiler technology, has narrowed the gap between the two languages. This hybrid technology with the advantages of a compiled language interpreted language, which is compiled languages like, first source program is compiled into byte code . When the execution period, then the literal byte code, after the execution. Java and LLVM is representative of the product of this technology.

 

Guess you like

Origin www.cnblogs.com/L-O-N/p/11389308.html