B.5.7. Compilation group, ARM-specific

The Compilation group contains settings that control the compilation of C and C++ code.

The Compilation group contains:

Compilation group settings

The Compilation group contains a series of settings that describe project compilation options.

Table B.19 lists the compiler options that you can set through the Compilation group. For information on these settings, see RealView Developer Kit v1.0 Compiler and Libraries Guide.

Table B.19. Compilation group

NameARM Compiler option
Compiler

The options for the available settings are:

ARM_C

armcc

Thumb_C

tcc

ARM_Cpp

armcpp

Thumb_Cpp

tcpp

Checkonly 
Endianness

--littleend

and

--bigend

Suppress_macro 
Generate_debug

-g

Debug_format

--dwarf2

ELF_section_per_fn

-zo

Char

-zc

Enums_as_ints

-fy

Fp_processing

--fpu

Note

Some options are not valid for the Thumb compiler. Make sure you choose valid options, otherwise, the files might not compile. See the documentation for the compiler you are using.

Checking group

The Checking group controls general compiler actions, including making certain checking operations stricter as an aid to portability and good coding practise.

By default, all settings are set to the default for the variant of C used to construct the source files for the project. This is defined by setting the Source language setting.

Table B.20 lists the compiler options that you can set through the Checking group. For information on these settings, see RealView Developer Kit v1.0 Compiler and Libraries Guide.

Table B.20. Checking group

NameARM Compiler option
Source_language

The compiler options for the available settings are:

default

default

ANSI

-C90

Strict

--strict

EmbeddedCPlusPlus

-embeddedcplusplus

Data_flow

-fa

Obj_declar

-fh (ADS v1.2 and RVCT v1.2 only)

Explicit_casts

-fp (ADS v1.2 and RVCT v1.2 only)

Unused_declar

-fv

Enable_suppressed

-fx

APCS group

The APCS group controls ARM Procedure Call Standard (APCS) qualifiers. For full details see ARM-Thumb® Procedure Call Standard (ATPCS) Specification.

Table B.21 lists the compiler options that you can set through the APCS group. For information on these settings, see RealView Developer Kit v1.0 Compiler and Libraries Guide.

Table B.21. APCS group

NameARM Compiler option
Stack_checking

--[no]swstackcheck

Interworking

--[no]interwork

Ropi

--[no]ropi

Rwpi

--[no]rwpi

Alignment group

The Alignment group controls alignment options in the compiled code.

Table B.22 lists the compiler options that you can set through the Alignment group. For information on these settings, see RealView Developer Kit v1.0 Compiler and Libraries Guide.

Table B.22. Alignment group

NameARM Compiler option
Struct_align

-zasNumber

Right-click to see the available options.

Language group

The Language group controls C++ language options in the compiled code.

The Language group contains the Cpp group.

Table B.23 lists the compiler options that you can set through the Language group. For information on these settings, see RealView Developer Kit v1.0 Compiler and Libraries Guide.

Table B.23. Language group

NameARM Compiler option
Dollar_signs

--dollar

Alt_tokens

--alternative_tokens

Multibyte_chars

--multibyte_chars

Multibyte_locale

--locale

Cpp group

The Cpp group controls C++ language options.

Table B.24 lists the compiler options that you can set through the Cpp group. For information on these settings, see RealView Developer Kit v1.0 Compiler and Libraries Guide.

Table B.24. Cpp group

NameARM Compiler option
Dll_vtable

--dll_vtable

Implicit_include

--implicit_include

Pending_inst

--pending_instantiations

Qualifier_deduction

--nonstd_qualifier_deduction

Rtti_support

--rtti_support

Using_std

--using_std

Old_special

--old_specializations

Guiding_decls

--guiding_decls

Parse_templates

--parse_templates

Dep_name

--dep_name

Friend_injection

--friend_injection

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential