Currently, high-level languages are generally used to write computer programs. High-level languages are mainly relative to assembly languages. It is programming that is closer to natural language and mathematical formulas and is basically separated from the hardware system of the machine. Programs are written in a way that is easier for people to understand, and the programs written are called source programs.
#Currently, high-level languages are generally used to write computer programs.
High-level programming language is a machine-independent, process- or object-oriented language. A high-level language is a language designed with reference to mathematical language that approximates daily conversation. For example, to add two variables and assign them to a third variable, the high-level language expression is var3=var1 var2.
Computer languages are divided into high-level languages and low-level languages. High-level language is mainly relative to assembly language. It is programming that is closer to natural language and mathematical formulas. It is basically separated from the hardware system of the machine and writes programs in a way that is easier for people to understand. The program written is called the source program.
Recommended: "Programming Video"
High-level language does not refer to a specific language, but includes Many programming languages, such as the popular java, c, c, C#, pascal, python, lisp, prolog, FoxPro, Yi Language, Chinese version of C language, etc., have different syntax and command formats.
High-level language has nothing to do with the computer's hardware structure and instruction system. It has stronger expression ability, can easily express data operations and program control structures, can better describe various algorithms, and is easy to Learn to master. However, the program code generated by high-level language compilation is generally longer than the program code designed in assembly language, and the execution speed is also slower. Therefore, assembly language is suitable for writing programs that require high speed and code length and programs that directly control hardware. High-level languages, assembly language, and machine language are all languages used to write computer programs.
High-level language programs "cannot see" the hardware structure of the machine and cannot be used to write system software or device control software that directly accesses the machine's hardware resources. To this end, some high-level languages provide calling interfaces with assembly language. A program written in assembly language can be used as an external procedure or function in a high-level language, using the stack to pass parameters or the address of parameters.
The above is the detailed content of What is currently used to write computer programs?. For more information, please follow other related articles on the PHP Chinese website!