In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the programming language in which the program that can be directly executed by the computer is written, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let the editor take you to know it.
Programs that can be executed directly by a computer are written in "machine language". Machine language is a program language or instruction code that can be directly recognized by the machine, without translation, each opcode has a corresponding circuit to complete it in the computer, or refers to the program language or instruction code that can be directly understood and accepted by the machine without translation.
Programs that can be executed directly by a computer are written in "machine language".
A programming language is a formal language used to define computer programs and to issue instructions to computers. There are a large number of computer languages, and a large number of new programming languages are produced every year. According to the level, programming languages can be divided into three categories: machine language, assembly language and high-level language.
Machine language consists of machine instruction set, which can be directly executed by machine. The programs written in machine language are not easy to read and difficult to remember.
In essence, assembly language is also a direct operation to the hardware. Due to the use of mnemonics, it is more convenient to write and read than machine language.
In a high-level language, several assembler statements are merged into more concise programming statements, and some tasks such as stack and register allocation management are completed automatically, which makes it more convenient for programmers to develop programs.
Machine language is a program language or instruction code that can be directly recognized by the machine, without translation, each opcode has a corresponding circuit to complete it in the computer, or refers to the program language or instruction code that can be directly understood and accepted by the machine without translation.
Machine language has the characteristics of flexibility, direct execution and high speed. Different types of computers have different machine languages, and programs written according to the machine instructions of one computer cannot be executed on another computer.
An instruction is a statement of machine language, which is a set of meaningful binary codes. The basic format of the instruction is, for example, the opcode field and the address code field, where the opcode indicates the operational nature and function of the instruction. The address code gives the address of the Operand or Operand.
The opcode specifies the operation of the instruction, which is the keyword in the order and cannot be defaulted. The Operand represents the Operand of the instruction. The instruction format of the computer is closely related to the word length of the machine, the capacity of the memory and the function of the instruction. From the point of view of facilitating programming, increasing the parallelism of basic operations and improving the function of instructions, instructions should contain a variety of information. However, in some instructions, because some of the information may be useless, this will waste the storage space occupied by the instructions and increase the number of memory accesses, which may affect the speed instead. Therefore, how to design the instruction format reasonably and scientifically so that the instruction can not only give enough information, but also make its length match the word length of the machine as much as possible, so as to save the storage space, shorten the value time and improve the performance of the machine? this is an important problem in instruction format design.
Thank you for reading this article carefully. I hope the article "what programming language can be directly executed by computers" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.