Home /
Expert Answers /
Computer Science /
exapmple-whats-has-been-done-here-explain-the-line-of-codes-and-the-given-answer-computer-archit-pa765
(Solved): Exapmple whats has been done here , explain the line of codes and the given answer . Computer Archit ...
Exapmple whats has been done here , explain the line of codes and the given answer .
Computer Architecture
Consider this high-level language statement: A=B+C/? assume all quantities in main memory */ With a traditional instruction set architecture, referred to as a complex instruction set computer (CISC), this instruction can be compiled into one processor instruction: add mem (B), mem(C), mem(A) On a typical RISC machine, the compilation would look something like this: load mem(B), reg(1); load mem (C), reg(2); add reg(1),reg(2),reg(3); store reg(3), mem (A) Because of the nature of the RISC architecture (discussed in Chapter 15), both machines may execute the original high-level language instruction in about the same time. If this example is representative of the two machines, then if the CISC machine is rated at 1 MIPS, the RISC machine would be rated at 4 MIPS. But both do the same amount of high-level language work in the same amount of time.