Datasheet

C and C++ Compilers
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-29
to place a function at a particular address in memory. If you are using
third-party code, you do not have to change the source, but you must
recompile (unless the code was already compiled with the -zo option).
pragma arm section
This pragma specifies the code or data section name used for subsequent
functions or objects. This includes definitions of anonymous objects the
compiler creates for initializations.
Use a scatter-loading description file with the linker to control placing a
named section at a particular address in memory (see Pragmas
controlling code generation on page 3-4 and the ADS Linker and Utilities
Guide).
Setting byte order
-littleend
This option generates code for an ARM processor using little-endian
memory. With little-endian memory, the least significant byte of a word
has lowest address. This is the default.
-bigend
This option generates code for an ARM processor using big-endian
memory. With big-endian memory, the most significant byte of a word
has lowest address.
Setting alignment options
-zasNumber
This option specifies the minimum byte alignment for structures. Valid
values for
Number
are:
1, 2, 4, 8
The default is 1. This option is deprecated and will not be supported in
future versions of the product.
-memaccess option
This option indicates to the compiler that the memory in the target system
has slightly restricted or expanded capabilities. By default, ARM
compilers assume that the memory system can load and store words at
4-byte alignment, halfwords at 2-byte alignment, and bytes. Load and
store capability can be indicated by specifying
option
:
+L41
The memory can return the aligned word containing the
addressed byte. This is useful only with ARM architecture v3
processors that lack load halfword.