Datasheet

Migrating Projects from SDT to ADS
4-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0064D
4.2 Moving your development project from SDT to ADS
The following sections describe the most important changes between ADS and SDT,
and describe how to change your tool options and code to work with ADS:
Compiling
Assembling on page 4-7
Linking on page 4-8
Initialization of C Libraries and Execution Regions on page 4-13
Calling constructors and destructors for top-level C++ objects on page 4-16.
4.2.1 Compiling
Some compiler features have changed between SDT and ADS. For a full list of changes
between SDT and ADS 1.2, see Chapter 2 Differences. The following sections describe
changes to the most commonly used compiler options, and to how paths are handled:
-apcs 3/nosw
-apcs /softfp/narrow (or /wide)
-zat and alignment of top-level static objects on page 4-5
-zas and alignment of structs on page 4-5
-zz, -zt, -zzt0 on page 4-5
-fc on page 4-6
Include paths on page 4-6
-apcs 3/nosw
The
-apcs 3
options is the default for the compilers in SDT 2.50 and SDT 2.51. It is
redundant, and is faulted in ADS.
The
-apcs
qualifier
/nosw
is recognized by the SDT ARM compilers.
/noswst
is the
default for ADS.
-apcs /softfp/narrow (or /wide)
-apcs /softfp
is the default for the compilers in SDT 2.50 and SDT 2.51. The equivalent
default ADS option is
-fpu softvfp
. The options are functionally similar. They both
implement floating-point arithmetic by subroutine call.
If you see:
Error: C3057E: bad option '-apcs /softfp': ignored
then remove the
/softfp
qualifier from your compiler command line. See
Floating-point support on page 2-33 for more information.