Examine the subprogram call instructions of two different ar

Examine the subprogram call instructions of two different architectures. One should be a Complex Instruction Set Computer (CISC) machine and the other a Reduced Instruction Set Computer (RISC) machine. write a comparison of their capabilities. Be sure to be specific.

Solution

The CISC Approach
The primary goal of CISC architecture is to complete a task in as few lines of assembly as possible. This is achieved by building processor hardware that is capable of understanding and executing a series of operations. For this particular task, a CISC processor would come prepared with a specific instruction (we\'ll call it \"MULT\"). When executed, this instruction loads the two values into separate registers, multiplies the operands in the execution unit, and then stores the product in the appropriate register. Thus, the entire task of multiplying two numbers can be completed with one instruction:

MULT is what is known as a \"complex instruction.\" It operates directly on the computer\'s memory banks and does not require the programmer to explicitly call any loading or storing functions. It closely resembles a command in a higher level language. For instance, if we let \"a\" represent the value of 2:3 and \"b\" represent the value of 5:2, then this command is identical to the C statement \"a = a * b.\"

One of the primary advantages of this system is that the compiler has to do very little work to translate a high-level language statement into assembly. Because the length of the code is relatively short, very little RAM is required to store instructions. The emphasis is put on building complex instructions directly into the hardware.

The RISC Approach
RISC processors only use simple instructions that can be executed within one clock cycle. Thus, the \"MULT\" command described above could be divided into three separate commands: \"LOAD,\" which moves data from the memory bank to a register, \"PROD,\" which finds the product of two operands located within the registers, and \"STORE,\" which moves data from a register to the memory banks. In order to perform the exact series of steps described in the CISC approach, a programmer would need to code four lines of assembly:

LOAD A, 2:3
LOAD B, 5:2
PROD A, B
STORE 2:3, A

At first, this may seem like a much less efficient way of completing the operation. Because there are more lines of code, more RAM is needed to store the assembly level instructions. The compiler must also perform more work to convert a high-level language statement into code of this form.

However, the RISC strategy also brings some very important advantages. Because each instruction requires only one clock cycle to execute, the entire program will execute in approximately the same amount of time as the multi-cycle \"MULT\" command. These RISC \"reduced instructions\" require less transistors of hardware space than the complex instructions, leaving more room for general purpose registers. Because all of the instructions execute in a uniform amount of time (i.e. one clock), pipelining is possible.

Separating the \"LOAD\" and \"STORE\" instructions actually reduces the amount of work that the computer must perform. After a CISC-style \"MULT\" command is executed, the processor automatically erases the registers. If one of the operands needs to be used for another computation, the processor must re-load the data from the memory bank into a register. In RISC, the operand will remain in the register until another value is loaded in its place.

CISC

Emphasis on hardware

Includes multi-clock

complex instructions

Memory-to-memory: “LOAD” and “STORE” incorporated in instructions

high cycles per second, Small code sizes

Transistors used for storing complex instructions

RISC

Emphasis on software

Single-clock

reduced instruction only

Register to register: “LOAD” and “STORE” are independent instructions

Low cycles per second, large code sizes

Spends more transistors on memory registers

Examine the subprogram call instructions of two different architectures. One should be a Complex Instruction Set Computer (CISC) machine and the other a Reduced
Examine the subprogram call instructions of two different architectures. One should be a Complex Instruction Set Computer (CISC) machine and the other a Reduced

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site