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

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.

主站蜘蛛池模板: 肥东县| 磴口县| 邯郸县| 大埔县| 松溪县| 孟连| 洪泽县| 华容县| 古浪县| 通化县| 游戏| 英德市| 唐河县| 崇信县| 宁明县| 海南省| 塘沽区| 徐州市| 昆山市| 广灵县| 理塘县| 宜城市| 合水县| 饶河县| 保定市| 安达市| 曲沃县| 本溪市| 竹山县| 万安县| 饶平县| 宁武县| 庆城县| 陕西省| 三穗县| 开化县| 会理县| 卢氏县| 涿鹿县| 班戈县| 集贤县|