Home Common Problem What can computer hardware directly execute?

What can computer hardware directly execute?

Jul 08, 2022 pm 03:14 PM
computer

The only thing that computer hardware can directly execute is "machine language". The computer can only recognize 0 and 1, and all information is stored in the machine in the form of 0 and 1 (ie binary); and machine language is a set of machine instructions represented by binary code that the computer can directly recognize and execute. , consisting of two parts: operation code and operand; machine language is the operating function given to the computer by the computer designer through the computer's hardware structure.

What can computer hardware directly execute?

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

Computer hardware can only directly execute "machine language".

The computer can only recognize 0 and 1. All information is stored in the machine in the form of 0 and 1 (ie binary), and the storage unit used is bytes.

The machine language instruction is a binary code, which consists of two parts: opcode and operand.

Machine language is a set of machine instructions represented by binary code that a computer can directly recognize and execute. It is the operating function given to the computer by the computer designer through the computer's hardware structure. Machine language has the characteristics of flexibility, direct execution and high speed. The machine languages ​​of different types of computers are incompatible. A program compiled according to the machine instructions of one type of computer cannot be executed on another type of computer.

An instruction is a statement in machine language. It is a set of meaningful binary codes. The basic format of the instruction is such as the operation code field and the address code field. The operation code specifies the operation nature and function of the instruction. , the address code gives the operand or the address of the operand.

To write programs in machine language, programmers must first memorize all the instruction codes of the computer used and the meaning of the codes. When hand-programming, programmers have to handle the storage allocation and input and output of each instruction and data by themselves, and they also have to remember the state of the work unit used in each step of the programming process. This is a very tedious job. The time it takes to write a program is often dozens or hundreds of times longer than the actual running time. Moreover, the programs compiled are all instruction codes of 0s and 1s, which are not intuitive and prone to errors. Except for professionals from computer manufacturers, the vast majority of programmers no longer learn machine language.

General situation and main shortcomings of machine language

General situation

1. A lot of complexity Trivial details constrain programmers, making it impossible for them to have more time and energy to engage in creative work and perform tasks that are more important to them. Such as ensuring the correctness and efficiency of the program.

2. Programmers must not only control the overall situation of programming but also go deep into every part until the details of implementation. Even programmers with superior intelligence often miss one and often make mistakes, so the programs they write are reliable. Poor performance and long development cycle.

3. Since the way of thinking and expression of programming in machine language is very different from people's habits, only programmers who have undergone long-term professional training can be competent, making programming high-key.

4. Because its written form is all "secret" code, it has poor readability and is inconvenient for communication and cooperation.

5. Because it relies heavily on the specific computer, it has poor portability and poor reusability.

Weak generality

The computers designed and produced by various computer companies have differences in the number and functions of instructions, instruction formats, addressing methods, and data formats. Even if Some commonly used basic instructions, such as arithmetic and logical operation instructions, transfer instructions, etc. are also different. Therefore, although the high-level languages ​​of various types of computers are basically the same, the differences between high-level language programs after they are compiled into machine language are also very large. Therefore, it is almost impossible to transplant programs expressed in machine language to other machines. From the development process of computers, we have seen that due to the rapid development of the basic hardware that constitutes computers, computers are updated very quickly, which raises the problem of how software can keep up. As we all know, 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. , this is the so-called software provided by a third party.

In order to alleviate the contradiction between the launch of new machines and the continued use of original applications, the series machine idea adopted when designing the IBM360 computer in 1964 solved this problem better. From then on, although the hardware implementation methods of the same series of computers produced by each computer company can be different, the instruction system, data format, I/O system, etc. remain the same, so the software is fully compatible (on this basis, compatible computers were produced) ). When developing new models or high-end products of this series of computers, although the instruction system can be greatly expanded, all the original instructions are still retained to maintain the upward compatibility of software, that is, the software on low-end machines or old models will not Modifications can be made to run on newer machines that are more advanced than it to protect the user's investment in the software.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What can computer hardware directly execute?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

2024 CSRankings National Computer Science Rankings Released! CMU dominates the list, MIT falls out of the top 5 2024 CSRankings National Computer Science Rankings Released! CMU dominates the list, MIT falls out of the top 5 Mar 25, 2024 pm 06:01 PM

The 2024CSRankings National Computer Science Major Rankings have just been released! This year, in the ranking of the best CS universities in the United States, Carnegie Mellon University (CMU) ranks among the best in the country and in the field of CS, while the University of Illinois at Urbana-Champaign (UIUC) has been ranked second for six consecutive years. Georgia Tech ranked third. Then, Stanford University, University of California at San Diego, University of Michigan, and University of Washington tied for fourth place in the world. It is worth noting that MIT's ranking fell and fell out of the top five. CSRankings is a global university ranking project in the field of computer science initiated by Professor Emery Berger of the School of Computer and Information Sciences at the University of Massachusetts Amherst. The ranking is based on objective

Remote Desktop cannot authenticate the remote computer's identity Remote Desktop cannot authenticate the remote computer's identity Feb 29, 2024 pm 12:30 PM

Windows Remote Desktop Service allows users to access computers remotely, which is very convenient for people who need to work remotely. However, problems can be encountered when users cannot connect to the remote computer or when Remote Desktop cannot authenticate the computer's identity. This may be caused by network connection issues or certificate verification failure. In this case, the user may need to check the network connection, ensure that the remote computer is online, and try to reconnect. Also, ensuring that the remote computer's authentication options are configured correctly is key to resolving the issue. Such problems with Windows Remote Desktop Services can usually be resolved by carefully checking and adjusting settings. Remote Desktop cannot verify the identity of the remote computer due to a time or date difference. Please make sure your calculations

What is e in computer What is e in computer Aug 31, 2023 am 09:36 AM

The "e" of computer is the scientific notation symbol. The letter "e" is used as the exponent separator in scientific notation, which means "multiplied to the power of 10". In scientific notation, a number is usually written as M × 10^E, where M is a number between 1 and 10 and E represents the exponent.

Fix: Microsoft Teams error code 80090016 Your computer's Trusted Platform module has failed Fix: Microsoft Teams error code 80090016 Your computer's Trusted Platform module has failed Apr 19, 2023 pm 09:28 PM

<p>MSTeams is the trusted platform to communicate, chat or call with teammates and colleagues. Error code 80090016 on MSTeams and the message <strong>Your computer's Trusted Platform Module has failed</strong> may cause difficulty logging in. The app will not allow you to log in until the error code is resolved. If you encounter such messages while opening MS Teams or any other Microsoft application, then this article can guide you to resolve the issue. </p><h2&

What does computer cu mean? What does computer cu mean? Aug 15, 2023 am 09:58 AM

The meaning of cu in a computer depends on the context: 1. Control Unit, in the central processor of a computer, CU is the component responsible for coordinating and controlling the entire computing process; 2. Compute Unit, in a graphics processor or other accelerated processor, CU is the basic unit for processing parallel computing tasks.

Unable to open the Group Policy object on this computer Unable to open the Group Policy object on this computer Feb 07, 2024 pm 02:00 PM

Occasionally, the operating system may malfunction when using a computer. The problem I encountered today was that when accessing gpedit.msc, the system prompted that the Group Policy object could not be opened because the correct permissions may be lacking. The Group Policy object on this computer could not be opened. Solution: 1. When accessing gpedit.msc, the system prompts that the Group Policy object on this computer cannot be opened because of lack of permissions. Details: The system cannot locate the path specified. 2. After the user clicks the close button, the following error window pops up. 3. Check the log records immediately and combine the recorded information to find that the problem lies in the C:\Windows\System32\GroupPolicy\Machine\registry.pol file

What should I do if steam cannot connect to the remote computer? What should I do if steam cannot connect to the remote computer? Mar 01, 2023 pm 02:20 PM

Solution to the problem that steam cannot connect to the remote computer: 1. In the game platform, click the "steam" option in the upper left corner; 2. Open the menu and select the "Settings" option; 3. Select the "Remote Play" option; 4. Check Activate the "Remote Play" function and click the "OK" button.

Unable to copy data from remote desktop to local computer Unable to copy data from remote desktop to local computer Feb 19, 2024 pm 04:12 PM

If you have problems copying data from a remote desktop to your local computer, this article can help you resolve it. Remote desktop technology allows multiple users to access virtual desktops on a central server, providing data protection and application management. This helps ensure data security and enables companies to manage their applications more efficiently. Users may face challenges while using Remote Desktop, one of which is the inability to copy data from the Remote Desktop to the local computer. This may be caused by different factors. Therefore, this article will provide guidance on resolving this issue. Why can't I copy from the remote desktop to my local computer? When you copy a file on your computer, it is temporarily stored in a location called the clipboard. If you cannot use this method to copy data from the remote desktop to your local computer