go to previous page   go to home page   go to next page highlighting

Answer:

Yes. That is one of ideas of modularity. You want to write a subroutine without the need to look inside other modules.


Prolog of the Subroutine

The subroutine looks like this:

## maxInt -- compute the maximum of two integer arguments
##
## Input:
## $a0 -- a signed integer
## $a1 -- a signed integer
##
## Returns:
## $v0 -- maximum

         .text
         .globl maxInt

maxInt:

         # prolog


         # body


         # epilog



QUESTION 12:

What is the first thing the prolog must do using the Stack-based Linkage Convention ?


go to previous page   go to home page   go to next page