as: MSP430 Options
1
1 9.29.1 Options
1 --------------
1
1 '-mmcu'
1 selects the mcu architecture. If the architecture is 430Xv2 then
1 this also enables NOP generation unless the '-mN' is also
1 specified.
1
1 '-mcpu'
1 selects the cpu architecture. If the architecture is 430Xv2 then
1 this also enables NOP generation unless the '-mN' is also
1 specified.
1
1 '-msilicon-errata=NAME[,NAME...]'
1 Implements a fixup for named silicon errata. Multiple silicon
1 errata can be specified by multiple uses of the '-msilicon-errata'
1 option and/or by including the errata names, separated by commas,
1 on an individual '-msilicon-errata' option. Errata names currently
1 recognised by the assembler are:
1
1 'cpu4'
1 'PUSH #4' and 'PUSH #8' need longer encodings on the MSP430.
1 This option is enabled by default, and cannot be disabled.
1 'cpu8'
1 Do not set the 'SP' to an odd value.
1 'cpu11'
1 Do not update the 'SR' and the 'PC' in the same instruction.
1 'cpu12'
1 Do not use the 'PC' in a 'CMP' or 'BIT' instruction.
1 'cpu13'
1 Do not use an arithmetic instruction to modify the 'SR'.
1 'cpu19'
1 Insert 'NOP' after 'CPUOFF'.
1
1 '-msilicon-errata-warn=NAME[,NAME...]'
1 Like the '-msilicon-errata' option except that instead of fixing
1 the specified errata, a warning message is issued instead. This
1 option can be used alongside '-msilicon-errata' to generate
1 messages whenever a problem is fixed, or on its own in order to
1 inspect code for potential problems.
1
1 '-mP'
1 enables polymorph instructions handler.
1
1 '-mQ'
1 enables relaxation at assembly time. DANGEROUS!
1
1 '-ml'
1 indicates that the input uses the large code model.
1
1 '-mn'
1 enables the generation of a NOP instruction following any
1 instruction that might change the interrupts enabled/disabled
1 state. The pipelined nature of the MSP430 core means that any
1 instruction that changes the interrupt state ('EINT', 'DINT', 'BIC
1 #8, SR', 'BIS #8, SR' or 'MOV.W <>, SR') must be followed by a NOP
1 instruction in order to ensure the correct processing of
1 interrupts. By default it is up to the programmer to supply these
1 NOP instructions, but this command line option enables the
1 automatic insertion by the assembler, if they are missing.
1
1 '-mN'
1 disables the generation of a NOP instruction following any
1 instruction that might change the interrupts enabled/disabled
1 state. This is the default behaviour.
1
1 '-my'
1 tells the assembler to generate a warning message if a NOP does not
1 immediately follow an instruction that enables or disables
1 interrupts. This is the default.
1
1 Note that this option can be stacked with the '-mn' option so that
1 the assembler will both warn about missing NOP instructions and
1 then insert them automatically.
1
1 '-mY'
1 disables warnings about missing NOP instructions.
1
1 '-md'
1 mark the object file as one that requires data to copied from ROM
1 to RAM at execution startup. Disabled by default.
1
1 '-mdata-region=REGION'
1 Select the region data will be placed in. Region placement is
1 performed by the compiler and linker. The only effect this option
1 will have on the assembler is that if UPPER or EITHER is selected,
1 then the symbols to initialise high data and bss will be defined.
1 Valid REGION values are:
1 'none'
1 'lower'
1 'upper'
1 'either'
1