Home  >  Article  >  Programs that can be directly executed by computers are written in what language?

Programs that can be directly executed by computers are written in what language?

藏色散人
藏色散人Original
2021-07-09 10:58:1230559browse

A program that can be directly executed by a computer is a program written in machine language. Machine language is a program language or instruction code that the machine can directly recognize without translation. Each operation code has a corresponding code inside the computer. A circuit is used to complete it, or it refers to a programming language or instruction code that can be directly understood and accepted by the machine without translation.

Programs that can be directly executed by computers are written in what language?

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

A program that can be directly executed by a computer is written in what language?

A program that can be directly executed by a computer is a program written in machine language.

Machine language is a programming language or instruction code that the machine can directly recognize without translation. Each operation code has a corresponding circuit inside the computer to complete it, or it can be directly translated to the machine without translation. Understand and accept programming language or instruction code. Machine language uses absolute addresses and absolute opcodes. Different computers have their own machine languages, that is, instruction systems. From a usage perspective, machine language is the lowest level language.

Application of machine language

An instruction is a statement in machine language, which is a set of meaningful binary codes. The computers designed and produced by various computer companies have different instructions in the number and function, instruction format, addressing mode, and data format. It can be seen from the development process of computers that due to the rapid development of the basic hardware that constitutes computers and the rapid replacement of computers, there is a problem of how software can keep up with the hardware. When a new machine is launched and delivered for use, only a small amount of system software (such as operating system, etc.) can be submitted to users. A large amount of software is constantly being enriched, especially applications, a considerable part of which are continuously generated by users when using the machine. In order to alleviate the problem that original applications cannot continue to be used due to the introduction of new machines, when the same series of computers produced by various computer companies, although the hardware implementation methods can be different, the instruction system, data format, I/O system, etc. remain the same , so the software is fully compatible. When developing new models of this series of computers, although the instruction system can be greatly expanded, all the original instructions are still retained to make the software upwardly compatible, that is, the software on the old model can be used on the new machine without modification. run.

At this point, everyone understands why a computer is a computer, and a computer is a computer. It turns out that no matter how intelligent it appears, its essence is just the result of these binary code operations. But binary code was too laborious to use, so assembly language was later developed based on it, but assembly still seemed unintuitive, so eventually the high-level languages ​​used in modern programming emerged. This is the development of computer programming languages. With a programming language, I can supposedly make these machines work for me. It's actually not that simple. First of all, every time you do something, you have to repeatedly compile a lot of operating procedures, which is a huge workload. Secondly, we have all seen that most of the people who use computers are not computer majors, let alone programming. If the operation steps are complicated, we should resist it. Therefore, an operating system is needed to leave complex operations to ourselves and present simple operations to users.

Compatible with machine language programs. Machine language is machine instructions implemented in hardware. Achieving compatibility of programs written in machine language has very strict requirements on computer architecture. The architecture and user program interface of the operating system of the two computers that need to be compatible should be exactly the same; even if they are slightly different, software simulation or Hardware emulation is compatible. However, these methods will significantly reduce the computing speed of the user program.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of Programs that can be directly executed by computers are written in what language?. 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
Previous article:What does Link Now mean?Next article:What does Link Now mean?