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

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.

主站蜘蛛池模板: 吉木萨尔县| 榆中县| 岳西县| 驻马店市| 甘德县| 嘉禾县| 玉田县| 双流县| 沧州市| 茂名市| 湘西| 海口市| 邹平县| 呈贡县| 卫辉市| 钦州市| 玉田县| 闸北区| 三亚市| 定襄县| 西平县| 门源| 奈曼旗| 石楼县| 察雅县| 贞丰县| 武陟县| 宿州市| 奉新县| 高邮市| 清徐县| 新闻| 榆中县| 齐齐哈尔市| 宜宾县| 盐边县| 慈溪市| 武功县| 巴楚县| 巧家县| 邵武市|