For the following C statement what is the corresponding MIPS
     For the following C statement, what is the corresponding MIPS assembly code? Assume that the variables f, g, h, and k are assigned to registers $s0, $s1, $s2, and $s3, respectively.  f=g+(h-5);  k=f 
  
  Solution
.file 1 \"\" .section .mdebug.abi32 .previous .gnu_attribute 4, 1 .abicalls .text .align 2 .globl main $LFB0 = . .set nomips16 .ent main .type main, @function main: .frame $fp,32,$31 # vars= 16, regs= 1/0, args= 0, gp= 8 .mask 0x40000000,-4 .fmask 0x00000000,0 .set noreorder .set nomacro addiu $sp,$sp,-32 $LCFI0: sw $fp,28($sp) $LCFI1: move $fp,$sp movz $31,$31,$0 $LCFI2: lw $2,12($fp) nop addiu $3,$2,-5 lw $2,16($fp) nop addu $2,$3,$2 sw $2,20($fp) lw $2,20($fp) nop sw $2,8($fp) move $2,$0 move $sp,$fp lw $fp,28($sp) addiu $sp,$sp,32 j $31 nop .set macro .set reorder .end main $LFE0: .size main, .-main .ident \"GCC: (Debian 4.4.5-8) 4.4.5\"
