Home >Common Problem >What are programs written by users in a high-level computer language usually called?

What are programs written by users in a high-level computer language usually called?

青灯夜游
青灯夜游Original
2022-07-13 14:09:2838238browse

Programs written by users in high-level computer languages ​​are usually called "source programs". Source program refers to an uncompiled text file written in accordance with a certain programming language specification (high-level language). It is a series of human-readable computer language instructions. The ultimate goal of a computer source program is to translate human-readable text into binary instructions that a computer can execute. This process is called compilation and is completed through a compiler.

What are programs written by users in a high-level computer language usually called?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

Programs written by users in high-level computer languages ​​are usually called "source programs".

Source program (also called source code) refers to an uncompiled text file written in accordance with certain programming language specifications. It is a series of human-readable computer language instructions. In modern programming languages, source code can appear in the form of books or tapes, but the most commonly used format is a text file. The purpose of this typical format is to compile a computer program. The ultimate goal of computer source code is to translate human-readable text into binary instructions that the computer can execute. This process is called compilation and is completed through a compiler.

Source program is code written in assembly language and high-level language. The main target is developers; the applications we usually use are compiled and packaged before being released, and the final result is presented to users and end customers.

High-level languages ​​usually refer to C/C, BASIC, C#, JAVA, PASCAL, etc. Assembly language is ASM. This is the only one. The lower level than this is machine language.

The source program mainly has the following two functions:

1. Generate target code, that is, code that can be recognized by the computer.

2. Explain the software, that is, explain the writing of the software. Many beginners and even a few experienced programmers ignore the writing of software descriptions because this part will not be directly displayed in the generated program and will not be involved in compilation. But commenting code has huge benefits for software learning, sharing, maintenance and software reuse. Therefore, writing software descriptions is considered a good habit in the industry to create excellent programs, and some companies also make it mandatory to write it.

It should be pointed out that modification of the source code cannot change the generated target code. If the target code needs to be modified accordingly, it must be recompiled.

Extended knowledge: high-level language

High-level programming language (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.

High-level languages ​​are more readable and easier to understand than low-level languages. Since the development of the early computer industry was mainly in the United States, general high-level languages ​​were modeled on English.

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 for writing 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.

Category:

  • Imperative language. The semantic foundation of this language is a Turing machine computable model that simulates "data storage/data operations", which is very consistent with the natural implementation of modern computer architecture. The main way to generate operations is to rely on the side effects of statements or commands. Most modern popular languages ​​are of this type, such as Fortran, Pascal, Cobol, C, C, Basic, Ada, Java, C#, etc. Various scripting languages ​​are also considered to be of this type.

  • Functional language. The semantic foundation of this language is the lambda operator computable model of value mapping based on the concept of mathematical functions. This language is very suitable for calculations for work such as artificial intelligence. Typical functional languages ​​such as Lisp, Haskell, ML, Scheme, F#, etc.

  • Logical language. The semantic foundation of this language is a system of formal logic based on a set of known rules. This language is mainly used in the implementation of expert systems. The most famous logical language is Prolog.

  • Object-oriented language. Most modern languages ​​provide object-oriented support, but some languages ​​are built directly on the basic object-oriented model, and the semantics of the language's syntactic form are basic object operations. The major pure object-oriented language is Smalltalk.

For more programming-related knowledge, please visit: Programming Video! !

The above is the detailed content of What are programs written by users in a high-level computer language usually called?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn