This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:cs:chapter_3_3 [2025/12/02 08:33] – ktokarz | en:multiasm:cs:chapter_3_3 [2025/12/02 08:57] (current) – ktokarz | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| It is not only the whole computer that can have a different architecture. This also touches processors. There are two main internal processor architectures: | It is not only the whole computer that can have a different architecture. This also touches processors. There are two main internal processor architectures: | ||
| - | Complex instructions mean that a typical single CISC processor instruction performs more operations during its execution than a typical RISC instruction. The CISC processors also implement more sophisticated addressing modes. This means that if we want to implement an algorithm, we can use fewer CISC instructions compared to more RISC instructions. Of course, it comes with the price of a more sophisticated construction of a CISC processor than RISC, which influences the average execution time of a single instruction. As a result, the CISC processor does more work during program execution, while in RISC, the compiler (or assembler programmer) does more work during the implementation phase. | + | Complex instructions mean that a typical single CISC processor instruction performs more operations during its execution than a typical RISC instruction. The CISC processors also implement more sophisticated addressing modes. This means that if we want to implement an algorithm, we can use fewer CISC instructions compared to more RISC instructions. Of course, it comes with the price of a more sophisticated construction of a CISC processor than RISC. The complexity of a circuit |
| - | The most visible distinguishing features between RISC and CISC architectures to a programmer lie in the general-purpose registers and instruction operands. | + | The most visible distinguishing features between RISC and CISC architectures to a programmer lie in the general-purpose registers and instruction operands. |
| < | < | ||
| operation arg1, arg2 ; Example: arg1 = arg1 + arg2 | operation arg1, arg2 ; Example: arg1 = arg1 + arg2 | ||
| Line 28: | Line 28: | ||
| </ | </ | ||
| + | All these features make the RISC architecture more flexible, allowing the programmer or compiler to create code without unnecessary data transfer. The execution units of RISC processors can be simpler in construction, | ||
| + | A simple instruction can be converted directly into a single microoperation. Complex instructions are often implemented as sequences of microoperations called microcodes. | ||