Compiled high-level language source programs can be executed after compilation and connection. Compiled high-level languages target a specific platform by compiling the source code into machine code that can be executed by the platform's hardware, and packaging it into an executable program format that can be recognized by the platform.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
Compiled high-level language source programs can be compiled and connected before execution.
Computers cannot understand high-level languages, let alone directly execute high-level languages. They can only directly understand machine languages. Therefore, if any program written in a high-level language wants to be run by the computer, it must be Convert into computer language, that is, machine code. There are two ways of conversion:
1. Compilation
2. Interpretation
Therefore, high-level languages are also divided into compiled languages and interpreted languages.
The main difference is that the former source program can be run on the platform after compilation, while the latter is compiled during operation. Therefore, the former runs fast and the latter has good cross-platform performance.
Compiled language
Use a specialized compiler to compile the high-level language source code into a program that can be compiled at one time for a specific platform. Machine code executed by the platform hardware and packaged into an executable program format recognized by the platform.
Features
Before a program written in a compiled language is executed, a special compilation process is required to compile the source code into a machine language file, such as in exe format. file, when you want to run it again in the future, you can directly use the compilation result, such as running the exe file directly. Because it only needs to be compiled once and does not need to be compiled when running later, compiled languages have high execution efficiency.
Summary
1. One-time compilation into platform-related machine language files, running out of the development environment, high operating efficiency;
2 .Related to a specific platform and generally cannot be transplanted to other platforms;
3. Existing C, C, Objective, etc. are all compiled languages.
If you need more programming-related knowledge, please visit: Programming Video! !
The above is the detailed content of What can a compiled high-level language source program do?. For more information, please follow other related articles on the PHP Chinese website!