]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/doc/gcc/gcc-command-options/machine-dependent-options/m32c-options.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / doc / gcc / gcc-command-options / machine-dependent-options / m32c-options.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. program:: M32C
7
8 .. index:: M32C options
9
10 .. _m32c-options:
11
12 M32C Options
13 ^^^^^^^^^^^^
14
15 .. option:: -mcpu={name}
16
17 Select the CPU for which code is generated. :samp:`{name}` may be one of
18 :samp:`r8c` for the R8C/Tiny series, :samp:`m16c` for the M16C (up to
19 /60) series, :samp:`m32cm` for the M16C/80 series, or :samp:`m32c` for
20 the M32C/80 series.
21
22 .. option:: -msim
23
24 Specifies that the program will be run on the simulator. This causes
25 an alternate runtime library to be linked in which supports, for
26 example, file I/O. You must not use this option when generating
27 programs that will run on real hardware; you must provide your own
28 runtime library for whatever I/O functions are needed.
29
30 .. option:: -memregs={number}
31
32 Specifies the number of memory-based pseudo-registers GCC uses
33 during code generation. These pseudo-registers are used like real
34 registers, so there is a tradeoff between GCC's ability to fit the
35 code into available registers, and the performance penalty of using
36 memory instead of registers. Note that all modules in a program must
37 be compiled with the same value for this option. Because of that, you
38 must not use this option with GCC's default runtime libraries.