- 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.
推薦閱讀
- Java多線程編程實(shí)戰(zhàn)指南:設(shè)計(jì)模式篇(第2版)
- 跟“龍哥”學(xué)C語(yǔ)言編程
- JMeter 性能測(cè)試實(shí)戰(zhàn)(第2版)
- Java游戲服務(wù)器架構(gòu)實(shí)戰(zhàn)
- Python Tools for Visual Studio
- Podman實(shí)戰(zhàn)
- EPLAN實(shí)戰(zhàn)設(shè)計(jì)
- Visual Basic程序設(shè)計(jì)實(shí)踐教程
- Swift Playgrounds少兒趣編程
- Windows Phone 7.5:Building Location-aware Applications
- Python算法詳解
- 從零開(kāi)始:UI圖標(biāo)設(shè)計(jì)與制作(第3版)
- Emotional Intelligence for IT Professionals
- React and React Native
- Spring Boot 3:入門(mén)與應(yīng)用實(shí)戰(zhàn)