On the CPU and programmer

Preface: As a programmer, I've used to eat the "guy" is the computer it, if someone asks you what computers are, how you going to answer it? Here from the perspective of life, talk to your computer.

1. The classification of the computer: It is true that there are many ways to calculate classification, what microcomputers, mainframes, and here I do not want to say this classification, such as mainframes, this life hard for you to meet, I said that under the common life of some classification.

1.1 dedicated machine: God's special task team designed a special computer, which is very common in life, but few think such a dedicated machine also known as the "machine" life "ATM machine" is this, as well as the railway station buffet take-out port is such a dedicated machine. As shown below

 

 

 

 

    What are the benefits of using such a machine is it, first because the special plane, so fast, low-cost second

 Universal machine: Universal machine you will not be unfamiliar, that is, we usually use the PC.

2. Composition of the computer

I know the computer, here to talk about the computer component of it, and now the most common computer Von Neumann architecture, is the programs and data stored and then automatically go to the execution of the program, now that I think feel very general architecture ah but in that era, people can think of no ordinary character. Composition of the computer consists of five parts:

 

 

The core is the controller, who controls the remaining four parts (under the influence of the clock), and later with the development of semiconductor technology, and now the computer operator and controller integrated together, is what we usually say the CPU.

3.CPU arithmetic and controller

   3.1 arithmetic unit ALU

     It is mainly composed of an arithmetic logic unit performing arithmetic and logic operations, a shift operation, the main execution unit of the CPU. Full adder as the core. Operator more bits, the higher the accuracy of the calculation, the cost will increase.

   3.2 Controller

    Generating a control command to control the machine operation. How is the controller work? The input instruction to determine what output signal. Command is issued by the controller of three parts, the instruction information, status information, timing information, these three parts is expressed by a set of instructions.

4.CPU and instruction set

CPU is very complex equipment, when we programmed, in fact, each has a corresponding CPU instruction sets, such as the ARM instruction set usually say, X86 instruction set, as programmers we rarely know what is the instruction set, this is a relationship we do not, in fact, each architecture corresponds to a different set of instructions in the CPU is decoded by a lot of instruction decode circuit, so a corresponding set of CPU instruction set. The following is the relationship between high-level language code instructions and the CPU.

 

 

  

Old nine Academy members produced

Author: Happy Mirror

Guess you like

Origin www.cnblogs.com/ljxt/p/11579829.html