Search Results

    loading table of contents...

    To get help about ARM GCC Toolchain, you can do the following:

    This section illustrates the GUI options that are available for the ARM GNU Toolchain in Atmel Studio.



    Table 20. ARM GNU C compiler options

    OptionDescription
    OptionDescription

    Preprocessor options

    -nostdinc

    Do not search system include directories

    -E

    Preprocess only; Do not compile , Assemble or link

    Symbols options

    There one can define (-D) or undefine (-U) a number of in-source symbols. New symbol declarations can be added, modified, or reordered, using the interface buttons below:

    • Add a new symbol. This and all following icons are reused with the same meaning in other parts of Atmel Studio interface

    • Remove a symbol.

    • Edit symbol

    • Move the symbol up in the parsing order

    • Move the symbol down in the parsing order

    Include directories

    Default Include Path

    Enabling this option will add the include path that are specific for the selected SAM device

    Contains all the included header and definition directories, can be modified, using the same interface as symbols.

    Optimization options

    Optimization level (drop down menu): -O0, -O1, -O2, -O3, -Os

    No optimization, optimize for speed (level 1 - 3), optimize for size

    Other optimization flags (manual input form)

    Here you should write optimization flags specific for the platform and your requirements

    -ffunction-sections

    Place each function into its own section

    -funsafe-math-optimizations

    Enable unsafe match optimizations

    -ffast-math

    Enable fast math

    -fpic

    Generate position independent code

    Debug options

    Debug level (drop down menu): none, -g1, -g2, -g3

    Specifies the level of tracing and debugging code and headers left or inserted in the source code

    Other debug options (form field)

    Architecture specific debug options

    -pg

    Generate gprof information

    -p

    Generate prof information

    Warning messages output options

    -Wall

    All warnings

    -Werror

    Treat all warnings as errors

    -fsyntax-only

    Check syntax only

    -pedantic

    Check conformity to GNU, raise warnings on non-standard programming practice

    -pedantic-errors

    Same as above, plus escalate warnings to errors

    -w

    Inhibits all warnings

    Miscelaneous options

    Other flags (form field)

    Input other project-specific flags

    -v

    Verbose(Display the programs invoked by the compiler)

    -ansi

    Support ANSI programs

    -save-temps

    Do not delete intermediate files



    Linker Scripts

    ARM Assembler options


    ARM Preprocessing Assembler options