Page 309 - Introduction to Microcontrollers Architecture, Programming, and Interfacing of The Motorola 68HC12
P. 309
286 Chapter 9 Implementation of C Procedures
9.7 Summary
In this chapter, we have shown how C constructs are encoded in assembly language. We
showed how variables are allocated and accessed. We saw how simple expressions, and
then more complex expressions, are implemented. Assembly-language implementations
of conditional expressions were then shown. Implementation of indexed and sequential
structures were covered along with implementation of looping statements. We then
considered the implementation of procedures and the passing of arguments. Finally, the
mechanism for handling a C++ virtual procedure call was considered.
This chapter provides the reader with a basic understanding of what is being done at
the machine level when a high-level language statement is encoded. It should give the
reader the understanding necessary to write efficient high-level language programs.
Do You Know These Terms?
See the end of chapter 1 for instructions.
downcasting logical operators virtual
upcasting row-major order viable
relational operators