f78
The following options for architecture and code generation can be used on all MIPS targets.
-mcpu=r3000
-mcpu=cputype
-mips1
-mips2
-mips3
-mips4
-meb
-mel
-mad
-m4650
-mfp64
-mfp32
-mgp64
-mfp32
-mlong64
-G num
gcc options for floating point for MIPS
The following options select
software or hardware floating point.
In particular, this gcc configuration generates subroutine calls compatible with the US Software GOFAST R3000 floating point library, giving you the opportunity to use either the libgcc implementation or the US Software version. IDT includes the GOFAST library in their IDT C 5.0 package; you can also order libraries separately from IDT as the IDT kit of how to use gcc to link with the GOFAST library.
To use the ‘libgcc’ version, you need nothing special; gcc links with libgcc automatically after all other object files and libraries.
Because the calling convention
for MIPS architectures depends on whether or not hardware floating-point
is installed, ‘-msoft-float’
has one further effect: gcc
looks for sub-routine libraries in a subdirectory, ‘soft-float’,
for any library directory in your search path. (Note: This does
not apply to directories specified using the ‘-l’
option.) With the GNUPro Toolkit, you can select the standard libraries
as usual with the options, ‘-lc’
or ‘-lm’,
because the soft-float versions are installed in the default library search
paths.
-msingle-float
Two kinds of floating point subroutines are useful with gcc.