Line-Number Table Structure
A-13
Common Object File Format
-
For the
remaining lines in a function, bytes 0 –3 show the physical address
(the number of words created by a line of C source) and bytes 4 –5 show
the address of the original C source, relative to its appearance in the C
source program.
The line-number entry table can contain many of these blocks.
Figure A–5 illustrates line-number entries for a function named XYZ. As
shown, the function name is entered as a symbol in the symbol table. The first
portion on XYZ’s block of line-number entries points to the function name in
the symbol table. Assume that the original function in the C source contained
three lines of code. The first line of code produces 4 words of assembly lan-
guage code, the second line produces 3 words, and the third line produces 10
words.
Figure A–5. Line-Number Entries
0
1
2
3
0
4
7
XYZ
•
•
line-number
entries
symbol table
(Note that the symbol table entry for XYZ has a field that points back to the
beginning of the line-number block.)
Because line numbers are not often needed, the linker provides an option (–s)
that strips line-number information from the object file; this provides a more
compact object module.
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......