- 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.
推薦閱讀
- SPSS數(shù)據(jù)挖掘與案例分析應(yīng)用實(shí)踐
- Julia機(jī)器學(xué)習(xí)核心編程:人人可用的高性能科學(xué)計(jì)算
- Processing互動(dòng)編程藝術(shù)
- Ext JS 4 Web Application Development Cookbook
- Mastering Apache Spark 2.x(Second Edition)
- Oracle從入門到精通(第5版)
- JavaScript入門經(jīng)典
- C語(yǔ)言程序設(shè)計(jì)同步訓(xùn)練與上機(jī)指導(dǎo)(第三版)
- Apache Spark 2.x for Java Developers
- Spring Boot+Vue全棧開(kāi)發(fā)實(shí)戰(zhàn)
- PHP 7從零基礎(chǔ)到項(xiàng)目實(shí)戰(zhàn)
- C編程技巧:117個(gè)問(wèn)題解決方案示例
- Greenplum構(gòu)建實(shí)時(shí)數(shù)據(jù)倉(cāng)庫(kù)實(shí)踐
- 高性能PHP 7
- C語(yǔ)言程序設(shè)計(jì)教程