Traditional Culture Encyclopedia - Traditional customs - What are the advantages and disadvantages of compiled and interpreted languages?

What are the advantages and disadvantages of compiled and interpreted languages?

A compiled language

Advantages: fast, efficient code, compiled program can not be modified, better confidentiality.

Disadvantages: the code needs to be compiled to run, poor portability, can only run on compatible operating systems.

Second, interpreted languages

Advantages: better portability, as long as there is an interpretation of the environment, can be run on different operating systems.    

Disadvantages: running the need to interpret the environment, running slower than compiled, taking up more resources, code efficiency, code can be run after modification, do not need to compile the process.

Extended information:

.

Compiled Languages: Programs require a special compilation process before execution to compile the program into a machine language file, which does not need to be re-translated at runtime, and uses the compiled result directly. Program execution efficiency is high, dependent on the compiler, cross-platform poorer. Such as C, C++, Delphi and so on. In contrast, programs written in interpreted languages are not pre-compiled and store program code in text. When the program is released, it seems to save the compilation process. However, when running a program, an interpreted language must be interpreted before it can be run.

Baidu Encyclopedia - Compiled languages