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

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.

主站蜘蛛池模板: 瑞昌市| 城固县| 沅陵县| 西吉县| 石门县| 宁波市| 白水县| 成武县| 蒙自县| 滨海县| 报价| 韶山市| 田东县| 新乐市| 巴林右旗| 连州市| 惠水县| 买车| 金平| 武义县| 长岛县| 南汇区| 正阳县| 白银市| 阜平县| 花莲县| 华宁县| 鄂温| 云龙县| 蒲江县| 鄂温| 渭源县| 尤溪县| 土默特左旗| 磴口县| 湾仔区| 泗水县| 宁海县| 岳普湖县| 益阳市| 曲麻莱县|