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

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.

主站蜘蛛池模板: 喜德县| 湟源县| 绥芬河市| 新乐市| 木里| 甘洛县| 怀集县| 合肥市| 山西省| 昆明市| 略阳县| 获嘉县| 洛浦县| 龙游县| 瑞丽市| 鄄城县| 察隅县| 汪清县| 乐至县| 建昌县| 禹城市| 五华县| 扎囊县| 革吉县| 廊坊市| 南江县| 苗栗县| 舟曲县| 临洮县| 潞西市| 墨竹工卡县| 西城区| 涞水县| 阿图什市| 浙江省| 彰化县| 萨嘎县| 夏邑县| 福州市| 土默特右旗| 白玉县|