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.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Similar Papers
More From: Embedded Computing and Mechatronics with the PIC32 Microcontroller
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.