What can a compiled high-level language source program do?
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Characteristics of machine language: difficult to learn, understand, and understand; not universal; requires manual allocation of memory; and runs fastest. The characteristics of assembly language: the execution efficiency of the program is very high, it takes up little storage space, and it runs fast; it lacks versatility and the program is not easy to transplant. Characteristics of high-level languages: easy, certain versatility, and cannot be directly recognized and executed by computers.

Assembly language is not a high-level language; it is a low-level language like machine language. The difference between assembly language and high-level language: 1. The programming efficiency of assembly language is not high, while the programming efficiency of high-level language is higher than that of assembly language; 2. The readability of high-level language is higher than that of assembly language; 3. Assembly language is a Machine language, while high-level language is simplified and close to human natural language.

System software that can translate source programs written in high-level languages into target programs is a "compiler". A compiler is a translation program implemented using a generative implementation approach; it takes a source program written in a high-level programming language as input, and uses a target program expressed in assembly language or machine language as output.

Machine language is not a high-level language. It is a low-level language used for computer hardware. It interacts directly with the underlying hardware of the computer. Machine language uses binary encoding to represent instructions and data. Each instruction corresponds to an operation or function of the computer hardware. , High-level language is a programming language that is closer to human language, providing higher abstraction capabilities and development efficiency. Machine language and high-level language play different roles in programming, each with their own advantages and applicable scenarios.

What are the similarities and differences between C language and C? C language and C are two widely used programming languages. They are both structured programming languages and have many similarities, but there are also some obvious differences. This article will analyze the similarities and differences between C language and C, and provide specific code examples for comparison. 1. Similarities: Basic syntax: The basic syntax of C language and C is composed of basic elements such as keywords, identifiers, operators, constants and variables, so the two have many grammatical structures.

Kuai Technology reported on November 17 that this morning, Shenzhen Kaihong announced that the first KaihongOS humanoid robot based on the open source Hongmeng, jointly developed by it and Leju Robot, was officially released. According to the official introduction, this is an all-things intelligent teaching system equipped with KaihongOS and using robots as the carrier, covering multiple scenarios such as industry and services. This robot is equipped with a blood oxygen heart rate sensor, temperature and humidity sensor, infrared temperature sensor, human body induction sensor, NFC, OLED display, and LED lights. Through multiple joint sensing, it can intelligently execute decisions. At the same time, the robot can also be interconnected with mobile phones, tablets, computers and other devices in real time, getting rid of the traditional wire harness connection method and improving teaching efficiency. At the same time, this robot also has 17

C language stipulates that in a source program, the position of the main function can be arbitrary; when executing a program written in C language, the main function is equivalent to the entrance to the execution program; regardless of the position of the main function in the entire process , a C program always starts execution from the mam function.

Feature analysis of Go language: Is it a high-level language? Go language is a statically strongly typed programming language developed by Google. It is designed to be simple, easy to read and write, and has efficient concurrency features. So, according to the definition of high-level language, let's analyze whether Go language is a high-level language. Definition of high-level language A high-level language is a programming language that is closer to human language than machine language. It has the characteristics of concise syntax, easy to read and write, and high level of abstraction, which allows programmers to focus more on solving the problem itself.