官术网_书友最值得收藏!

Compiler and interpreter – differences in process

In any program development, the following are the two options:

  • Compilation: Using a compiler-based language, such as C, C++, Java, and other similar languages
  • Interpreter: Using interpreter-based languages, such as Bash shell scripting.

When we use a compiler-based language, we compile the complete source code and, as a result of compilation, we get a binary executable file. We then execute the binary to check the performance of our program.

On the other hand, when we develop the shell script, such as an interpreter-based program, every line of the program is input to the Bash shell. The lines of shell script are executed one by one sequentially. Even if the second line of a script has an error, the first line will be executed by the shell interpreter.

主站蜘蛛池模板: 海淀区| 福海县| 江西省| 中江县| 泗阳县| 喀喇沁旗| 读书| 兴山县| 宜州市| 安丘市| 高碑店市| 永胜县| 沂源县| 麻栗坡县| 孝义市| 旺苍县| 长乐市| 偃师市| 会泽县| 大港区| 许昌市| 博乐市| 平泉县| 集安市| 黄浦区| 天台县| 剑阁县| 永德县| 金川县| 时尚| 扎鲁特旗| 临澧县| 日照市| 合江县| 自贡市| 色达县| 微山县| 伊宁市| 仪征市| 时尚| 深圳市|