Datasheet
Differences
2-20 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0064D
New compiler options and pragmas
This section gives a brief summary of new compiler options for ADS 1.1. Refer to the
ADS Compilers and Libraries Guide for detailed information. The following compiler
options are new for ADS 1.1:
-split_ldm
This option reduces the maximum number of registers transferred by
LDM
and
STM
instructions generated by the compiler.
-O[no_]autoinline
This option disables automatic inlining. It can be enabled with
-Oautoinline
.
-O[no]ldrd
This option controls optimizations specific to ARM Architecture v5TE
processors. The default is
-Ono_ldrd
. If you select
-Oldrd
, and select an
Architecture v5TE
-cpu
option such as
-cpu xscale
, the compiler:
• Generates
LDRD
and
STRD
instructions where appropriate.
• Sets the natural alignment of
double
and
long
long
variables to
eight. This is equivalent to specifying
__align(8)
for each variable.
Note
If you select this option, the output object is marked as requiring
8-byte alignment. This means that it is unlikely to link with objects
built with versions of ADS earlier than 1.1.
-auto_float_constants
This option changes the default handling of unsuffixed floating-point
constants.
-Wk
This option turns off warnings that are given when the
-auto_float_constants
option is used.
-O[no_]known_library
The
-Oknown_library
option enables specific optimizations that are
dependent on the supplied ARM C library.
-Ono_known_library
is the
default, and is required if you re-implement any part of the C library.
This option has been removed for ADS version 1.2.
-fpu softvfp+vfp
This option selects a floating-point library with pure-endian doubles and
software floating-point linkage that uses the VFP hardware. Select this
option if you are interworking Thumb code with ARM code on a system
that implements a VFP unit.