Question: Question 3 Instruction Set Architecture, Assembly Language (a) This part is about comparison of RISC (Reduced Instruction Set Computer) versus CISC (Complex Instruction Set Computer)
Question 3 Instruction Set Architecture, Assembly Language (a) This part is about comparison of "RISC" (Reduced Instruction Set Computer) versus "CISC" (Complex Instruction Set Computer) instruction set architectures. Suppose you have written some complicated code in a high-level programming language like Fortran, Rust, or C. You then compile your code using two different compilers. First you use a compiler that produces machine code for a 32-bit RISC architecture (e.g. ARM or MIPS). Then you use a compiler that produces code for a 32-bit CISC architecture (e.g. an x86 family). So you now have two executable files, one produced by the RISC compiler and one produced by the CISC compiler. Which of these two executables is expected to be a larger file? Support your answer with a brief explanation. [8 marks - word limit 50] (b) The following shows a snippet of a programme in 32-bit MIPS Assembler: .text addi $t1, Szero, ? # where ? is the last digit of your student ID LOOP: sit $12, $zero, $t1 beq $12, Szero. DONE addi $t1 . $t1, -3 # $t1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
