Sample Exercises for Quiz 4

SPARC Architecture, Assembly Language Programming, and C (2nd Edition)

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sample Exercises for Quiz 4 Sample Exercises for Quiz 4 Subroutines, IEEE Floating Point Describe the differences between open, closed, and leaf subroutines. What are the advantages and disadvantages of each? What is recursion? Describe the general calling convention of general architectures with regards to building and breaking down the Stack Frame, passing parameters, etc. Who (the calling function or the called function) is responsible for building and breaking down the various parts of the Stack Frame? Describe the calling convention of the SPARC architecture, in particular, and how the SPARC architecture does something similar. Describe each of the following SPARC instructions (what do they do? what registers do they access/modify?). call save restore ret retl Describe how you would pass more than 6 arguments to a function in the SPARC architecture. How are they accessed from both the calling and the called functions? What register do you use to access local variables allocated on the Stack?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

Sample Exercises for Quiz 4 - Sample Exercises for Quiz 4...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online