RISC and CISC

Source: Internet
Author: User
Tags compact mul

RISC (thin instruction set computer) and CISC (complex instruction set computer) are two architectures of the current CPU. They differ in the different CPU design concepts and methods.

The early CPUs were all CISC architectures designed to perform the required computational tasks with minimal machine language instructions. For multiplication, for example, you might need an instruction on the CPU of the CISC architecture: MUL Addra, ADDRB can multiply the numbers in Addra and ADDRB and store the results in Addra. The Addra, the data in the ADDRB read into the register, and the operation to write the results back to memory all depend on the logic of the CPU design. This architecture increases the complexity of the CPU structure and the requirements for the CPU process, but is advantageous for the development of compilers. For example, the a*=b in the C program can be compiled directly into a multiplication instruction. Today only Intel and its compatible CPUs are using the CISC architecture.

The RISC architecture requires software to specify the individual steps of the operation. The above example if the implementation of the RISC architecture, will be Addra, ADDRB data in the register, multiply and write the results back to the memory of the operation must be implemented by the software, such as: MOV A, Addra; MOV B, ADDRB; MUL A, B; STR Addra, A. This architecture reduces CPU complexity and allows for more powerful CPUs to be produced at the same process level, but with higher requirements for compiler design.

Other:

CISC (complex instruction set) differences from RISC (reduced instruction set)

Complex Instruction Set computer (CISC)
For a long time, the increase in computer performance is often achieved by increasing the complexity of the hardware. With integrated circuit technology. In particular, the rapid development of VLSI (ultra-integrated circuit) technology, in order to facilitate software programming and improve the speed of the program, hardware engineers to use the method is to continuously increase the implementation of complex functions of the instructions and a variety of flexible addressing methods. Even some directives can support complex operations after high-level language statements are categorized. To make the hardware more and more complex, the cost is correspondingly improved. For complex operations, the microprocessor provides programmers with a similar variety of registers and machine instruction functions. Also through the micro-program stored in the read-only memory (ROM) to achieve its very strong function, proud processing after each instruction to perform a series of primary instruction operations to complete the required functions, the design of the type is called complex instruction set computer (Complex instruction SETCOMPUTER-CISC) structure. General CISC the number of instructions contained in the computer is at least 300
Above, some even more than 500 articles.
Streamlined instruction Set computer (RISC)
Computers with complex instruction systems have a strong ability to handle high-level languages. This is useful for improving the performance of your computer. When the design of the computer along this road develops. Some people do not drift. They looked back at the road they had been through and began to question the traditional approach: IBM did not organize the Yorktown of the Jhomasi.wason Research Center in New York in 1975 to study the rationality of the command system. Because it was felt that the increasingly complex command system is not easy to achieve. It can also degrade system performance. A group of scientists led by Professor Paterson in 1979 began the study at the University of California, Berkeley. The results show that there are many shortcomings in CISC. First In this kind of computer. The use of a variety of instructions is very different: a typical procedure used by the operation of the 80% instructions. accounts for only 20% of one processor instruction system. In fact, the most frequently used instructions are the simplest instructions for taking, saving, and adding. In this way, the long-term commitment to the design of a complex instruction system is actually designed to be a processor that is rarely used in practice in the instruction system. While Complex instruction systems inevitably lead to structural complexity. This not only increases the time and cost of design but also makes design mistakes. In addition Although VLSI technology has now reached a high level, it is difficult to cisc all the hardware on a chip, which also hinders the development of monolithic computers. In CISC, many complex instructions require very complex operations, most of which are a direct copy of a high-level language, and thus have poor versatility. It also reduces the speed of simple instruction systems that are frequently invoked because of the two-level microcode execution. thus Against these ills of CISC. Paterson and others put forward the idea that the instruction system should contain only a small number of instructions with very high frequency. and provide some necessary instructions to support the operating system and high-level languages. The computer developed in accordance with this principle is known as the compact instruction set computer (reduced instruction SETCOMPUTER-RISC) structure. RISC for short.

CISC the difference from RISC 

We often talk about "PC" and "Macintosh", but how many people know that the PC family with Intel company X86 is based on the CISC architecture, while Apple's Macintosh is based on RISC architecture, What is the difference between CISC and RISC?
From a hardware perspective, CISC deals with unequal instruction sets, which must split unequal instructions so that more processing is required when executing a single instruction. RISC performs a set of equal-length thin instructions, and the CPU is fast and stable when executing instructions. Therefore, RISC in parallel processing is significantly better than CISC,RISC can execute multiple instructions at the same time, it can divide an instruction into several processes or threads, to be executed simultaneously by multiple processors. Because RISC performs a streamlined instruction set, its manufacturing process is simple and low cost.
From the software point of view, CISC is running the DOS, Windows operating system that we are familiar with. And it has a lot of applications. Because more than 65% of the world's software vendors are CISC architecture-based PCs and their compatible machines, Microsoft is one of them. RISC is somewhat weak in this respect. Although DOS and Windows can be run on RISC, a translation process is required, so it runs much slower.
At present, CISC and RISC are gradually merging, Pentium Pro, Nx586, K5 is one of the most obvious examples, their cores are based on RISC architecture. They accept the CISC instruction and classify it into RISC instructions so that multiple instructions can be executed within a single time. This shows that the next generation of CPUs will be fused with CISC and RISC two technology, from the software and hardware aspects of the two will learn from each other.

The CISC (complex instruction set computer) and RISC (thin instruction set computer) are the two architectures of the current CPU. They differ in the different CPU design concepts and methods. The early CPUs were all CISC architectures designed to perform the required computational tasks with minimal machine language instructions. RISC and CISC are two typical technologies for designing and manufacturing microprocessors, although they are all trying to make some kind of balance in architecture, operation, software hardware, compile time and running time, in order to achieve efficient purposes, but the methods used are different, so there are many differences, they are mainly:
(1) Instruction system: RISC designers focus their energies on frequently used instructions and try to make them simple and efficient. For infrequently used functions, it is often done through a combination of instructions. Therefore, when you implement special functions on a RISC machine, the efficiency may be low. However, it can be improved and compensated by using pipelining technology and superscalar technology. and the instruction system of CISC computer is rich, has the special instruction to complete the specific function. Therefore, handling special tasks is highly efficient.
(2) Memory operation: RISC has limited memory operation, so the control is simplified, and the CISC machine has many memory operation instructions and direct operation.
(3) Program: RISC assembly language Program generally needs a large memory space, the implementation of special functions when the program is complex, difficult to design; CISC assembly language programming is relatively simple, scientific calculation and complex operation of the program is relatively easy, high efficiency.
(4) Interrupt: The RISC machine can respond to interrupts in the appropriate place where an instruction is executed, while the CISC machine responds to an interrupt after the execution of an instruction is completed.
(5) CPU:RISCCPU contains less unit circuit, so small area, low power consumption, and CISCCPU package contains a rich circuit unit, so the function is strong, large area, power consumption.
(6) Design cycle: RISC microprocessor has simple structure, compact layout, short design cycle, and easy to use the latest technology; CISC microprocessor has complex structure and long design period.
(7) User: RISC microprocessor structure is simple, the instructions are structured, easy to grasp the performance, easy to learn and easy to use; CISC microprocessor has complex structure, powerful function and easy to realize special functions.
(8) Scope of application: Since the determination of RISC instruction system is related to the specific application field, RISC machine is more suitable for the special machine, while the CISC machine is more suitable for the universal machine.

RISC and CISC

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.