Into the computer world--Computer science

Source: Internet
Author: User

1. What the procedure is.
A program is equal to a data addition algorithm, a collection of command sequences written in a computer language to achieve a specific goal or solve a specific problem.

2. What constitutes the procedure.
The program is composed of instructions and data.

3. What is machine language.
Machine language is also called low-level language or binary code language, which is the data that the CPU in the computer can read directly.

4. Where the running programs are stored.
Running programs are stored in memory.

5. What is the memory address.
Memory addresses are stored in a specific location in RAM to identify the storage unit.

6. The interpretation of the program and the operation of the computer components called What.
The CPU in the computer is responsible for the interpretation and operation of the program.
CPU Chinese Whole: The Central Processing Unit (abbreviated CPU of processing unit), is an integrated circuit, responsible for computer instruction interpretation and data processing.
The CPU includes registers, controllers, operators and clocks, four main components:
Registers, the temporary storage of some value of the place, the equivalent of memory in the CPU;
Controller, which is responsible for reading and writing the data in memory or register;
The operator, the logical operation unit, the auxiliary controller and the register achieve the operation effect;
Clock, the controller will be based on the clock pulse to do calculations, the speed of calculation will depend on the pace of the clock.
The most important thing we programmers need to notice is the register, which is equivalent to a piece of memory in the CPU, it is very fast, the CPU is equivalent to a number of registers, because there are many registers in a CPU.
How the registers in the CPU work.
The CPU contains one of the following registers: Accumulator register, Mark Register, program counter, base address register, change address register, General register, instruction register, stack register, etc.
Accumulator register: CPU In doing addition operation, store the data after the calculation;
Flag Register: After recording the data in the CPU state, is to help us make logical judgments;
Program registers: Stores the address of the next instruction in memory;
Base Address register: Stores the current full data memory start addresses;
Variable address register: Store the relative position of the base address register;
Universal registers: Where all can be used, programmers use the most registers;
Instruction register: CPU Internal use, programmers do not have the means to operate it, mainly to store the current value;
Stack registers: the equivalent base register and stack registers, the main record stack of the starting position;
Base Address register + variable address register can get a specific memory address.
There is memory in the computer, why also have registers. Because the register's operation speed is the memory operation speed dozens of times. Registers are equivalent to memory in the CPU.
These registers are already set when the CPU is out of the factory.
Our program is not only the sequential execution of programs, there are several other modes of operation: Conditional branch, loop, jump, etc., these functions by the program counter and sign registers together.
Logo Register: A total of 32, each have their own different meanings.
A jump instruction that contains three steps:
① calculation, ② Mark Register, ③ to judge, according to the results to rewrite the value of the program counter.

7.32 bits are several bytes.
1 bits equals 1bit, is the smallest unit of memory, 1 bytes is equal to 1byte, is the basic unit of memory, 1byte=8bit, so 4byte=32bit, that is to say 32 bits is 4 bytes.

8. What is the difference between binary and decimal?
Decimal: The number on each digit is a total of 10 0~9, every 10 carry, binary: the number on each digit is 0~1 a total of two, every 2 carry.

9. Why use binary in your computer?
Computer chips are made up of integrated circuits, while one pin has only two states, one is power (1) and the other is power off (0).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.