gcc.info: SH Options

Go forward to System V Options
Go backward to H8/300 Options
Go up to Submodel Options
Go to the top op gcc

SH Options

   These `-m' options are defined for the SH implementations:
`-m1'
     Generate code for the SH1.
`-m2'
     Generate code for the SH2.
`-m3'
     Generate code for the SH3.
`-m3e'
     Generate code for the SH3e.
`-mb'
     Compile code for the processor in big endian mode.
`-ml'
     Compile code for the processor in little endian mode.
`-mdalign'
     Align doubles at 64 bit boundaries.  Note that this changes the
     calling conventions, and thus some functions from the standard C
     library will not work unless you recompile it first with -mdalign.
`-mrelax'
     Shorten some address references at link time, when possible; uses
     the linker option `-relax'.