CHAPTER 6

Compiling to the Assembly Level

TABLE OF CONTENTS

6.1     Stack Addressing and Local Variables

6.2     Branching Instructions and Flow of Control

6.3     Function Calls and Parameters

6.4     Indexed Addressing and Arrays

6.5     Dynamic Memory Allocation

Chapter Summary

Exercises

Problems

The theme of this text is the application of the concept of levels of abstraction to computer systems. This chapter continues the theme by showing the relationship between the high-order languages level and the assembly level. It examines features of the C language at Level HOL6 and shows how a compiler might translate programs that use those features to the equivalent program at Level Asmb5.

One major difference between Level-HOL6 languages and Level-Asmb5 ...

Get Computer Systems, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.