6.2.14. Project settings for the example Dhrystone project

The following commands and options are used to build the example Dhrystone project:


armcc -c -DMSC_CLOCK -W -g --dwarf2 -Otime -O1 dhry_1.c -o Debug\dhry_1.o
armcc -c -DMSC_CLOCK -W -g --dwarf2 -Otime -O1 dhry_2.c -o Debug\dhry_2.o
armlink Debug\dhry_1.o Debug\dhry_2.o -o Debug\dhrystone.axf --info totals

Note

Because both source files are written in C, the compiler automatically compiles using ISO standard C. Therefore, the --c90 compiler option is omitted.

Table 6.7 describes the project build options to use in RealView Debugger. RealView Debugger always includes the -c compiler switch in the generated makefiles, so there is no equivalent project build option. This instructs the compiler to only generate object files.

Table 6.7. Build options used to build the dhrystone example project

Project build optionValueDescription
Messages.Suppress_allenabled

Instructs the compiler to suppress all warning messages.

This inserts the -W compiler switch.

Compilation.Generate_debug

enabled

Instructs the compiler to include debug tables.

This inserts the -g compiler switch.

Optimization.Debug_optimize

partial

Instructs the compiler to generate partially optimized code.

This inserts the -O1 compiler switch.

Optimization.Speed_vs_space

speed

Instructs the compiler to perform optimizations to reduce execution time at the possible expense of a larger image.

This inserts the -Otime compiler switch.

Compilation.Debug_format

dwarf2

Instructs the compiler to create DWARF2 debug information table format.

This inserts the --dwarf2 compiler switch. This is the default and only option.

Preprocessor.DefineMSC_CLOCK

Instructs the compiler to define the symbol MSC_CLOCK as a preprocessor macro.

This inserts the -D compiler switch.

BUILD.Application

dhrystone.axf

Instructs the linker to create an image with the filename dhrystone.axf.

This inserts the -o linker switch

BUILD.Messages.Sizes

totals

Instructs the linker to display the totals of the Code and Data (RO Data, RW Data, ZI Data, and Debug Data) sizes for input objects and libraries.

This inserts the --info totals linker switch.

See the RealView Compilation Tools Compiler and Libraries Guide for a description of the compiler options.

See the RealView Compilation Tools Linker and Utilities Guide for a description of the linker options.

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0181G
Non-Confidential