These `-m
' options are defined for the MIPS family of computers:
-mcpu=cpu type
r2000
', `r3000
',
`r4000
', `r4400
', `r4600
', and `r6000
'. While picking a
specific cpu type will schedule things appropriately for that
particular chip, the compiler will not generate any code that does not
meet level 1 of the MIPS ISA (instruction set architecture) without
the `-mips2
' or `-mips3
' switches being used.
-mips1
r3000
' is the default cpu type at this ISA level.
-mips2
r6000
' is the default cpu type at this
ISA level.
-mips3
r4000
' is the default cpu type at this ISA level.
-mfp32
-mfp64
-mips3
' option is used.
-mgp32
-mgp64
-mips3
' option is used.
-mint64
-mips3
' is also
specified.
-mlong64
-mips3
' is also specified.
-mmips-as
mips-tfile
' to
add normal debug information. This is the default for all
platforms except for the OSF/1 reference platform, using the OSF/rose
object format. If the either of the `-gstabs
' or `-gstabs+
'
switches are used, the `mips-tfile
' program will encapsulate the
stabs within MIPS ECOFF.
-mgas
-mrnames
-mno-rnames
-mrnames
' switch says to output code using the MIPS software
names for the registers, instead of the hardware names (ie, a0
instead of $4). The only known assembler that supports this option
is the Algorithmics assembler.
-mgpopt
-mno-gpopt
-mgpopt
' switch says to write all of the data declarations
before the instructions in the text section, this allows the MIPS
assembler to generate one word memory references instead of using two
words for short global or static data items. This is on by default if
optimization is selected.
-mstats
-mno-stats
-mstats
' switch
causes the compiler to emit one line to the standard error file to
print statistics about the program (number of registers saved, stack
size, etc.).
-mmemcpy
-mno-memcpy
-mmemcpy
' switch makes all block moves call the appropriate
string function (`memcpy
' or `bcopy
') instead of possibly
generating inline code.
-mmips-tfile
-mno-mips-tfile
-mno-mips-tfile
' switch causes the compiler not
postprocess the object file with the `mips-tfile
' program,
after the MIPS assembler has generated it to add debug support. If
`mips-tfile
' is not run, then no local variables will be
available to the debugger. In addition, `stage2
' and
`stage3
' objects will have the temporary file names passed to the
assembler embedded in the object file, which means the objects will
not compare the same. The `-mno-mips-tfile
' switch should only
be used when there are bugs in the `mips-tfile
' program that
prevents compilation.
-msoft-float
-mhard-float
-mabicalls
-mno-abicalls
.abicalls
',
`.cpload
', and `.cprestore
' that some System V.4 ports use for
position independent code.
-mlong-calls
-mno-long-calls
JALR
' instruction, which requires
loading up a function's address into a register before the call.
You need to use this switch, if you call outside of the current
512 megabyte segment to functions that are not through pointers.
-mhalf-pic
-mno-half-pic
-membedded-pic
-mno-embedded-pic
-membedded-data
-mno-embedded-data
-G num
-G num
' switch is also passed to the assembler and linker.
All modules should be compiled with the same `-G num
'
value.
-nocpp
.s
' suffix) when assembling them.
These options are defined by the macro
TARGET_SWITCHES
in the machine description. The default for the
options is also defined by that macro, which enables you to change the
defaults.