Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the Shell compiler? Which languages can be compiled?

Shulou Source: shulou.com Published: 2022-06-03 05:24:11 10月03日 Update

What is the Shell compiler commonly used by programmers? What languages can be compiled? Beginners may not know, this article uses examples to illustrate the shell compiler for you.

1. Introduction of shell

Foreword:

Computers can only recognize (recognize) machine languages (0 and 1), such as (11000000). However, our programmers cannot directly write code like 01, so if we want to run the code developed by programmers on a computer, we must find a "person" (tool) to translate it into a machine language. This "human" (tool) is what we often call a compiler or interpreter.

1. Programming languages classified and compiled languages:

Before the program is executed, it needs a special compilation process, which compiles the program into machine language files, and the runtime does not need to retranslate, just use the compiled results. The program has high execution efficiency, depends on the compiler, and is less cross-platform. Such as C, C++

Interpretive language:

The program does not need to be compiled, and the program is translated into machine language by the interpreter at run time, and must be translated each time it is executed. Therefore, the efficiency is relatively low. For example, Python/JavaScript/ Perl / ruby/Shell are all interpretive languages.

Summary

Compiled language is faster than interpretive language, but it is not as cross-platform as interpretive language. Compiling language is generally used for low-level development or large-scale application or operating system development; if it is some server scripts and some auxiliary interfaces, interpretive language is generally used if it does not require high speed and compatibility of various platforms.

After reading the above, do you have a general understanding of the Shell compiler? If you want to know more about the content of the article, welcome to follow the industry information channel, thank you for reading!

Tags: Language compiler program interpretation compiler machine development run code content tools efficiency interpreter speed compatibility preface picture and text picture and text example boy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information Microsoft OPPO Reno macOS