Options: ABI & ISA
-n32 invoke the MIPSpro Compiler, use 32 bit addressing
-64 invoke the MIPSpro Compiler, use 64 bit addressing
-o32/-32 invoke the old ucode compiler, 32 bit addressing
-mips[1234] ISA; -mips[12] implies ucode compiler
There are two more ways to define the ABI and ISA:
- environment variable “SGI_ABI” can be set to -n32 or -64
- the ABI/ISA/Processor/optimization can be set in a file ~/compiler.defaults or /etc/compiler.defaults. In addition, the location of the file can be defined by “COMPILER_DEFAULTS_PATH” environment variable. The file should contain a line like: -DEFAULT:abi=n32:isa=mips4:proc=r10000:arith=3:opt=O3
-
There is a way to find which compiler flags were used:
dwarfdump -i file.o | grep DW_AT_producer