These options are defined for the MSP430:
-masm-hex
-mmcu=
The option also sets the ISA to use. If the MCU name is one that is known to only support the 430 ISA then that is selected, otherwise the 430X ISA is selected. A generic MCU name of ‘msp430’ can also be used to select the 430 ISA. Similarly the generic ‘msp430x’ MCU name selects the 430X ISA.
In addition an MCU-specific linker script is added to the linker
command line. The script's name is the name of the MCU with
.ld appended. Thus specifying -mmcu=xxx on the gcc
command line defines the C preprocessor symbol __XXX__
and
cause the linker to search for a script called xxx.ld.
This option is also passed on to the assembler.
-mwarn-mcu
-mno-warn-mcu
-mcpu=
-msim
-mlarge
size_t
).
-msmall
size_t
).
-mrelax
mhwmult=
auto
is the default setting.
Hardware multiplies are normally performed by calling a library routine. This saves space in the generated code. When compiling at -O3 or higher however the hardware multiplier is invoked inline. This makes for bigger, but faster code.
The hardware multiply routines disable interrupts whilst running and
restore the previous interrupt state when they finish. This makes
them safe to use inside interrupt handlers as well as in normal code.
-minrt
-mcode-region=
-mdata-region=
lower
, upper
, either
or
section
attributes. Possible values are lower
,
upper
, either
or any
. The first three behave
like the corresponding attribute. The fourth possible value -
any
- is the default. It leaves placement entirely up to the
linker script and how it assigns the standard sections
(.text
, .data
, etc) to the memory regions.
-msilicon-errata=
-msilicon-errata-warn=