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

Compiler and interpreter – difference 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 contrary, when we develop the Shell script, such as an interpreter-based program, every line of the program is input to 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.

主站蜘蛛池模板: 沾化县| 怀宁县| 九龙城区| 玉屏| 镶黄旗| 天台县| 英山县| 卓尼县| 赤峰市| 乌拉特后旗| 新沂市| 门源| 罗平县| 桓台县| 泊头市| 蒙自县| 嘉禾县| 萝北县| 炉霍县| 确山县| 文水县| 海南省| 台湾省| 寿阳县| 龙门县| 澎湖县| 昌乐县| 隆德县| 香港 | 阳信县| 来安县| 赣州市| 龙里县| 扎鲁特旗| 普定县| 克什克腾旗| 托里县| 龙胜| 巴彦县| 特克斯县| 全南县|