2.3.6
An Example That Uses Sections Directives
Example 2–1 shows how you can build COFF sections incrementally, using
the sections directives to swap back and forth between the different sections.
You can use sections directives to begin assembling into a section for the first
time, or to continue assembling into a section that already contains code. In
the latter case, the assembler simply appends the new code to the code that
is already in the section.
The format in Example 2–1 is a listing file. Example 2–1 shows how the SPCs
are modified during assembly. A line in a listing file has four fields:
Field 1
contains the source code line counter.
Field 2
contains the section program counter.
Field 3
contains the object code.
Field 4
contains the original source statement.
How the Assembler Handles Sections
Introduction to Common Object File Format
2-9
Need help?
Do you have a question about the TMS320C54x and is the answer not in the manual?