当前位置:网站首页>A personal understanding of interpreted and compiled languages

A personal understanding of interpreted and compiled languages

2022-06-13 03:06:00 cathy18c

Explanatory language :
Interpretive languages do not need to be compiled , Translate line by line at run time
advantage : Good platform compatibility , It can run in any environment , If the interpreter is installed ( virtual machine ). You can modify the code directly , Can be deployed quickly , Maintenance without shutdown
shortcoming : Because I have to explain it every time I run , So the performance is not good
Representative language :Python    JavaScript    Perl    Sheel    Ruby

Compiler language
Generally, you need to pass the compiler , Compile the source code into machine code , To perform . Generally, you need to compile , link Two steps . Compilation is to convert source code into machine code , Linking is to string the machine code and link library of each module , Generate executable files .
advantage : Compilers usually optimize the code during precompiling . Because compilation is only done once , No compilation required at runtime , So the performance is good .
shortcoming : If you change the code, you need to recompile , When compiling, different machine codes are generated according to the running environment , Therefore, there are problems in porting between different operating systems . Different executable files need to be generated according to different operating system environments
Representative language :C#    C    C++

原网站

版权声明
本文为[cathy18c]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280534095667.html