The Sections Directive - Texas Instruments TMS320C54x User Manual

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

The SECTIONS Directive

10.6 The SECTIONS Directive
10-22
You can convert specific sections of the COFF file by name with the
SECTIONS directive. You can also specify those sections you want the utility
to configure for loading from an on-chip boot loader, and those sections that
you want to locate in ROM at a different address than the load address speci-
fied in the linker command file:
-
If you use a SECTIONS directive, the utility converts only the sections that
you list in the directive and ignores all other sections in the COFF file.
-
If you don't use a SECTIONS directive, the utility converts all initialized
sections that fall within the configured memory. The TMS320C54x
compiler-generated initialized sections include: .text, .const, .cinit, and
.switch.
Uninitialized sections are never converted, whether or not you specify them
in a SECTIONS directive.
Note: Sections Generated by the C Compiler
The TMS320C54x C compiler automatically generates these sections:
-
Initialized sections: .text, .const, .cinit, and .switch.
-
Uninitialized sections: .bss, .stack, and .sysmem.
Use the SECTIONS directive in a command file. (For more information about
using a command file, see Section 10.3, Command Files , on page 10-7 . ) The
general syntax for the SECTIONS directive is:
SECTIONS
{
sname : [paddr= value ]
sname : [paddr=boot]
sname : [= boot ],
...
}

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Table of Contents