Next: M32R/D Options, Previous: LM32 Options, Up: Submodel Options

#### 3.17.18 M32C Options

`-mcpu=`name
  Select the CPU for which code is generated. name may be one of ‘`r8c`’ for the R8C/Tiny series, ‘`m16c`’ for the M16C (up to /60) series, ‘`m32cm`’ for the M16C/80 series, or ‘`m32c`’ for the M32C/80 series.
`-msim`
  Specifies that the program will be run on the simulator. This causes an alternate runtime library to be linked in which supports, for example, file I/O. You must not use this option when generating programs that will run on real hardware; you must provide your own runtime library for whatever I/O functions are needed.
`-memregs=`number
  Specifies the number of memory-based pseudo-registers GCC will use during code generation. These pseudo-registers will be used like real registers, so there is a tradeoff between GCC's ability to fit the code into available registers, and the performance penalty of using memory instead of registers. Note that all modules in a program must be compiled with the same value for this option. Because of that, you must not use this option with the default runtime libraries gcc builds.