blob: c640bcac0bd52cf26c62021af91e5b8e098ed7c9 [file] [log] [blame]
<html lang="en">
<head>
<title>M68hc1x Options - Using the GNU Compiler Collection (GCC)</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using the GNU Compiler Collection (GCC)">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Submodel-Options.html#Submodel-Options" title="Submodel Options">
<link rel="prev" href="M680x0-Options.html#M680x0-Options" title="M680x0 Options">
<link rel="next" href="MCore-Options.html#MCore-Options" title="MCore Options">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
2008 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Funding Free Software'', the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below). A copy of the license is included in the section entitled
``GNU Free Documentation License''.
(a) The FSF's Front-Cover Text is:
A GNU Manual
(b) The FSF's Back-Cover Text is:
You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
<link rel="stylesheet" type="text/css" href="../cs.css">
</head>
<body>
<div class="node">
<a name="M68hc1x-Options"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="MCore-Options.html#MCore-Options">MCore Options</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="M680x0-Options.html#M680x0-Options">M680x0 Options</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Submodel-Options.html#Submodel-Options">Submodel Options</a>
<hr>
</div>
<h4 class="subsection">3.17.22 M68hc1x Options</h4>
<p><a name="index-M68hc1x-options-1495"></a>
These are the &lsquo;<samp><span class="samp">-m</span></samp>&rsquo; options defined for the 68hc11 and 68hc12
microcontrollers. The default values for these options depends on
which style of microcontroller was selected when the compiler was configured;
the defaults for the most common choices are given below.
<dl>
<dt><code>-m6811</code><dt><code>-m68hc11</code><dd><a name="index-m6811-1496"></a><a name="index-m68hc11-1497"></a>Generate output for a 68HC11. This is the default
when the compiler is configured for 68HC11-based systems.
<br><dt><code>-m6812</code><dt><code>-m68hc12</code><dd><a name="index-m6812-1498"></a><a name="index-m68hc12-1499"></a>Generate output for a 68HC12. This is the default
when the compiler is configured for 68HC12-based systems.
<br><dt><code>-m68S12</code><dt><code>-m68hcs12</code><dd><a name="index-m68S12-1500"></a><a name="index-m68hcs12-1501"></a>Generate output for a 68HCS12.
<br><dt><code>-mauto-incdec</code><dd><a name="index-mauto_002dincdec-1502"></a>Enable the use of 68HC12 pre and post auto-increment and auto-decrement
addressing modes.
<br><dt><code>-minmax</code><dt><code>-mnominmax</code><dd><a name="index-minmax-1503"></a><a name="index-mnominmax-1504"></a>Enable the use of 68HC12 min and max instructions.
<br><dt><code>-mlong-calls</code><dt><code>-mno-long-calls</code><dd><a name="index-mlong_002dcalls-1505"></a><a name="index-mno_002dlong_002dcalls-1506"></a>Treat all calls as being far away (near). If calls are assumed to be
far away, the compiler will use the <code>call</code> instruction to
call a function and the <code>rtc</code> instruction for returning.
<br><dt><code>-mshort</code><dd><a name="index-mshort-1507"></a>Consider type <code>int</code> to be 16 bits wide, like <code>short int</code>.
<br><dt><code>-msoft-reg-count=</code><var>count</var><dd><a name="index-msoft_002dreg_002dcount-1508"></a>Specify the number of pseudo-soft registers which are used for the
code generation. The maximum number is 32. Using more pseudo-soft
register may or may not result in better code depending on the program.
The default is 4 for 68HC11 and 2 for 68HC12.
</dl>
</body></html>