BAR1 List File

The list file BAR1.LST, in Listing B.3, shows the assembly language version of the program produced by the compiler. This book does not assume knowledge of assembler programming, but for those readers who have followed the usual progression from assembler, the list file gives a useful insight into how the compiler works. Comments (italics) have been added to the original file to explain its operation. The original source code is highlighted in bold.

Listing B.3. List File BAR1.LST

CCS PCM C Compiler, Version 4.024, 37533 16-Feb-07 17:05

Filename: bar1.lst

ROM used: 59 words (1%)

Largest free fragment is 2048

RAM used: 8 (2%) at main() level

9 (2%) worst case

Stack: 1 locations

*; START OF INITIALISATION ****************************

0000: ...

Get Programming 8-bit PIC Microcontrollers in C 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.