Current location - Recipe Complete Network - Complete cookbook - What is a computer program?
What is a computer program?
I. Procedures

Concept 1. A prescribed way of carrying out an activity or process.

Concept 2. A program is a sequence that tells a computer how to accomplish a specific task. Because today's computers can't understand human natural language and can't write computer programs in natural language.

Second, programming.

There are many kinds of computer languages, which can be generally divided into three categories: machine language, assembly language and high-level language.

At present, there are two general programming languages: assembly language and high-level language. The only language that a computer can recognize is machine language, that is, a code consisting of 0 and 1. But usually people don't use machine language when programming, because it is very difficult to remember and recognize.

Programs written in high-level languages cannot be directly recognized by computers, and can only be converted and executed. According to the conversion method, they can be divided into two categories:

Interpretation: The implementation method is similar to "simultaneous interpretation" in our daily life. The source code of an application is translated into object code (machine language) and executed at the same time, which is inefficient and cannot generate an executable file that can be executed independently. An application cannot be separated from its interpreter, but this method is flexible and can dynamically adjust and modify the application.

Compiler: Compiler refers to "translating" the program source code into the target code (machine language) before the application source code is executed, so that the target program can be executed independently from its language environment, which is more convenient and efficient to use. But once the application needs to be modified, it must first modify the source code, and then recompile to generate a new target file (*. To be executed. It is inconvenient to modify only the target file without modifying the source code. At present, most programming languages are compiled, such as Visual C++, Visual Foxpro, Delphi and so on.

Answer supplement

All software (including qq) is a running program.

Writing a program is a reciprocating process of the following steps: writing new source code, testing, analyzing and improving the newly written code, and finding out grammatical and semantic errors. People who do this kind of work are called programmers. Due to the rapid development of computers, the requirements and types of programming are becoming more and more diversified, resulting in different types of programmers, each of whom has a more detailed division of labor and tasks. Software engineers and system analysts are two examples. Now, the long process of programming is called "software development" or software engineering. The latter is becoming more and more popular because of the maturity of this subject.