- Learning Linux Shell Scripting
- Ganesh Sanjiv Naik
- 132字
- 2021-08-20 10:44:27
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.
推薦閱讀
- Android和PHP開發(fā)最佳實踐(第2版)
- 前端跨界開發(fā)指南:JavaScript工具庫原理解析與實戰(zhàn)
- Instant Zepto.js
- Getting Started with CreateJS
- Oracle數(shù)據(jù)庫從入門到運維實戰(zhàn)
- MySQL數(shù)據(jù)庫管理與開發(fā)實踐教程 (清華電腦學(xué)堂)
- 概率成形編碼調(diào)制技術(shù)理論及應(yīng)用
- 深度學(xué)習(xí):Java語言實現(xiàn)
- C#程序設(shè)計教程(第3版)
- Web前端應(yīng)用開發(fā)技術(shù)
- Android群英傳
- JavaScript機器人編程指南
- C語言程序設(shè)計
- 軟件測試(慕課版)
- Koa與Node.js開發(fā)實戰(zhàn)