Abstract

This chapter examines the assembly code produced when compiling a C program, with a particular focus on the time of execution and the amount of flash memory occupied by the program. The core timer is introduced as a convenient tool for timing code. Examining the assembly code emitted by the compiler allows comparison of the efficiency of different code that performs the same function, as well as a comparison of code compiled with and without optimizations. The role of the prefetch cache module in maximizing program execution speed is also explored. The chapter concludes with an examination of map files, which indicate the amount of flash memory and global data RAM used by a program. This also reinforces the discussion of the virtual memory map from Chapter 3.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call