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

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.

主站蜘蛛池模板: 赫章县| 台中县| 大竹县| 武乡县| 博兴县| 延津县| 广昌县| 本溪市| 洛南县| 丰顺县| 漯河市| 五台县| 乐山市| 依兰县| 南丹县| 塔河县| 长白| 嘉善县| 抚州市| 微博| 汕尾市| 舟曲县| 桐乡市| 万年县| 水城县| 安泽县| 海宁市| 武平县| 德昌县| 乌鲁木齐市| 罗田县| 巴中市| 弥勒县| 阳信县| 博爱县| 南乐县| 云和县| 南皮县| 凤阳县| 临泉县| 乌海市|