You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

505 lines
25KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>M680x0 Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="M680x0 Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="M680x0 Options (Using the GNU Compiler Collection (GCC))">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Submodel-Options.html#Submodel-Options" rel="up" title="Submodel Options">
  30. <link href="MCore-Options.html#MCore-Options" rel="next" title="MCore Options">
  31. <link href="M32R_002fD-Options.html#M32R_002fD-Options" rel="prev" title="M32R/D Options">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="M680x0-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="MCore-Options.html#MCore-Options" accesskey="n" rel="next">MCore Options</a>, Previous: <a href="M32R_002fD-Options.html#M32R_002fD-Options" accesskey="p" rel="prev">M32R/D Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="M680x0-Options-1"></a>
  68. <h4 class="subsection">3.19.25 M680x0 Options</h4>
  69. <a name="index-M680x0-options"></a>
  70. <p>These are the &lsquo;<samp>-m</samp>&rsquo; options defined for M680x0 and ColdFire processors.
  71. The default settings depend on which architecture was selected when
  72. the compiler was configured; the defaults for the most common choices
  73. are given below.
  74. </p>
  75. <dl compact="compact">
  76. <dt><code>-march=<var>arch</var></code></dt>
  77. <dd><a name="index-march-7"></a>
  78. <p>Generate code for a specific M680x0 or ColdFire instruction set
  79. architecture. Permissible values of <var>arch</var> for M680x0
  80. architectures are: &lsquo;<samp>68000</samp>&rsquo;, &lsquo;<samp>68010</samp>&rsquo;, &lsquo;<samp>68020</samp>&rsquo;,
  81. &lsquo;<samp>68030</samp>&rsquo;, &lsquo;<samp>68040</samp>&rsquo;, &lsquo;<samp>68060</samp>&rsquo; and &lsquo;<samp>cpu32</samp>&rsquo;. ColdFire
  82. architectures are selected according to Freescale&rsquo;s ISA classification
  83. and the permissible values are: &lsquo;<samp>isaa</samp>&rsquo;, &lsquo;<samp>isaaplus</samp>&rsquo;,
  84. &lsquo;<samp>isab</samp>&rsquo; and &lsquo;<samp>isac</samp>&rsquo;.
  85. </p>
  86. <p>GCC defines a macro <code>__mcf<var>arch</var>__</code> whenever it is generating
  87. code for a ColdFire target. The <var>arch</var> in this macro is one of the
  88. <samp>-march</samp> arguments given above.
  89. </p>
  90. <p>When used together, <samp>-march</samp> and <samp>-mtune</samp> select code
  91. that runs on a family of similar processors but that is optimized
  92. for a particular microarchitecture.
  93. </p>
  94. </dd>
  95. <dt><code>-mcpu=<var>cpu</var></code></dt>
  96. <dd><a name="index-mcpu-6"></a>
  97. <p>Generate code for a specific M680x0 or ColdFire processor.
  98. The M680x0 <var>cpu</var>s are: &lsquo;<samp>68000</samp>&rsquo;, &lsquo;<samp>68010</samp>&rsquo;, &lsquo;<samp>68020</samp>&rsquo;,
  99. &lsquo;<samp>68030</samp>&rsquo;, &lsquo;<samp>68040</samp>&rsquo;, &lsquo;<samp>68060</samp>&rsquo;, &lsquo;<samp>68302</samp>&rsquo;, &lsquo;<samp>68332</samp>&rsquo;
  100. and &lsquo;<samp>cpu32</samp>&rsquo;. The ColdFire <var>cpu</var>s are given by the table
  101. below, which also classifies the CPUs into families:
  102. </p>
  103. <table>
  104. <tr><td width="20%"><strong>Family</strong></td><td width="80%"><strong>&lsquo;<samp>-mcpu</samp>&rsquo; arguments</strong></td></tr>
  105. <tr><td width="20%">&lsquo;<samp>51</samp>&rsquo;</td><td width="80%">&lsquo;<samp>51</samp>&rsquo; &lsquo;<samp>51ac</samp>&rsquo; &lsquo;<samp>51ag</samp>&rsquo; &lsquo;<samp>51cn</samp>&rsquo; &lsquo;<samp>51em</samp>&rsquo; &lsquo;<samp>51je</samp>&rsquo; &lsquo;<samp>51jf</samp>&rsquo; &lsquo;<samp>51jg</samp>&rsquo; &lsquo;<samp>51jm</samp>&rsquo; &lsquo;<samp>51mm</samp>&rsquo; &lsquo;<samp>51qe</samp>&rsquo; &lsquo;<samp>51qm</samp>&rsquo;</td></tr>
  106. <tr><td width="20%">&lsquo;<samp>5206</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5202</samp>&rsquo; &lsquo;<samp>5204</samp>&rsquo; &lsquo;<samp>5206</samp>&rsquo;</td></tr>
  107. <tr><td width="20%">&lsquo;<samp>5206e</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5206e</samp>&rsquo;</td></tr>
  108. <tr><td width="20%">&lsquo;<samp>5208</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5207</samp>&rsquo; &lsquo;<samp>5208</samp>&rsquo;</td></tr>
  109. <tr><td width="20%">&lsquo;<samp>5211a</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5210a</samp>&rsquo; &lsquo;<samp>5211a</samp>&rsquo;</td></tr>
  110. <tr><td width="20%">&lsquo;<samp>5213</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5211</samp>&rsquo; &lsquo;<samp>5212</samp>&rsquo; &lsquo;<samp>5213</samp>&rsquo;</td></tr>
  111. <tr><td width="20%">&lsquo;<samp>5216</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5214</samp>&rsquo; &lsquo;<samp>5216</samp>&rsquo;</td></tr>
  112. <tr><td width="20%">&lsquo;<samp>52235</samp>&rsquo;</td><td width="80%">&lsquo;<samp>52230</samp>&rsquo; &lsquo;<samp>52231</samp>&rsquo; &lsquo;<samp>52232</samp>&rsquo; &lsquo;<samp>52233</samp>&rsquo; &lsquo;<samp>52234</samp>&rsquo; &lsquo;<samp>52235</samp>&rsquo;</td></tr>
  113. <tr><td width="20%">&lsquo;<samp>5225</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5224</samp>&rsquo; &lsquo;<samp>5225</samp>&rsquo;</td></tr>
  114. <tr><td width="20%">&lsquo;<samp>52259</samp>&rsquo;</td><td width="80%">&lsquo;<samp>52252</samp>&rsquo; &lsquo;<samp>52254</samp>&rsquo; &lsquo;<samp>52255</samp>&rsquo; &lsquo;<samp>52256</samp>&rsquo; &lsquo;<samp>52258</samp>&rsquo; &lsquo;<samp>52259</samp>&rsquo;</td></tr>
  115. <tr><td width="20%">&lsquo;<samp>5235</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5232</samp>&rsquo; &lsquo;<samp>5233</samp>&rsquo; &lsquo;<samp>5234</samp>&rsquo; &lsquo;<samp>5235</samp>&rsquo; &lsquo;<samp>523x</samp>&rsquo;</td></tr>
  116. <tr><td width="20%">&lsquo;<samp>5249</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5249</samp>&rsquo;</td></tr>
  117. <tr><td width="20%">&lsquo;<samp>5250</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5250</samp>&rsquo;</td></tr>
  118. <tr><td width="20%">&lsquo;<samp>5271</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5270</samp>&rsquo; &lsquo;<samp>5271</samp>&rsquo;</td></tr>
  119. <tr><td width="20%">&lsquo;<samp>5272</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5272</samp>&rsquo;</td></tr>
  120. <tr><td width="20%">&lsquo;<samp>5275</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5274</samp>&rsquo; &lsquo;<samp>5275</samp>&rsquo;</td></tr>
  121. <tr><td width="20%">&lsquo;<samp>5282</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5280</samp>&rsquo; &lsquo;<samp>5281</samp>&rsquo; &lsquo;<samp>5282</samp>&rsquo; &lsquo;<samp>528x</samp>&rsquo;</td></tr>
  122. <tr><td width="20%">&lsquo;<samp>53017</samp>&rsquo;</td><td width="80%">&lsquo;<samp>53011</samp>&rsquo; &lsquo;<samp>53012</samp>&rsquo; &lsquo;<samp>53013</samp>&rsquo; &lsquo;<samp>53014</samp>&rsquo; &lsquo;<samp>53015</samp>&rsquo; &lsquo;<samp>53016</samp>&rsquo; &lsquo;<samp>53017</samp>&rsquo;</td></tr>
  123. <tr><td width="20%">&lsquo;<samp>5307</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5307</samp>&rsquo;</td></tr>
  124. <tr><td width="20%">&lsquo;<samp>5329</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5327</samp>&rsquo; &lsquo;<samp>5328</samp>&rsquo; &lsquo;<samp>5329</samp>&rsquo; &lsquo;<samp>532x</samp>&rsquo;</td></tr>
  125. <tr><td width="20%">&lsquo;<samp>5373</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5372</samp>&rsquo; &lsquo;<samp>5373</samp>&rsquo; &lsquo;<samp>537x</samp>&rsquo;</td></tr>
  126. <tr><td width="20%">&lsquo;<samp>5407</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5407</samp>&rsquo;</td></tr>
  127. <tr><td width="20%">&lsquo;<samp>5475</samp>&rsquo;</td><td width="80%">&lsquo;<samp>5470</samp>&rsquo; &lsquo;<samp>5471</samp>&rsquo; &lsquo;<samp>5472</samp>&rsquo; &lsquo;<samp>5473</samp>&rsquo; &lsquo;<samp>5474</samp>&rsquo; &lsquo;<samp>5475</samp>&rsquo; &lsquo;<samp>547x</samp>&rsquo; &lsquo;<samp>5480</samp>&rsquo; &lsquo;<samp>5481</samp>&rsquo; &lsquo;<samp>5482</samp>&rsquo; &lsquo;<samp>5483</samp>&rsquo; &lsquo;<samp>5484</samp>&rsquo; &lsquo;<samp>5485</samp>&rsquo;</td></tr>
  128. </table>
  129. <p><samp>-mcpu=<var>cpu</var></samp> overrides <samp>-march=<var>arch</var></samp> if
  130. <var>arch</var> is compatible with <var>cpu</var>. Other combinations of
  131. <samp>-mcpu</samp> and <samp>-march</samp> are rejected.
  132. </p>
  133. <p>GCC defines the macro <code>__mcf_cpu_<var>cpu</var></code> when ColdFire target
  134. <var>cpu</var> is selected. It also defines <code>__mcf_family_<var>family</var></code>,
  135. where the value of <var>family</var> is given by the table above.
  136. </p>
  137. </dd>
  138. <dt><code>-mtune=<var>tune</var></code></dt>
  139. <dd><a name="index-mtune-8"></a>
  140. <p>Tune the code for a particular microarchitecture within the
  141. constraints set by <samp>-march</samp> and <samp>-mcpu</samp>.
  142. The M680x0 microarchitectures are: &lsquo;<samp>68000</samp>&rsquo;, &lsquo;<samp>68010</samp>&rsquo;,
  143. &lsquo;<samp>68020</samp>&rsquo;, &lsquo;<samp>68030</samp>&rsquo;, &lsquo;<samp>68040</samp>&rsquo;, &lsquo;<samp>68060</samp>&rsquo;
  144. and &lsquo;<samp>cpu32</samp>&rsquo;. The ColdFire microarchitectures
  145. are: &lsquo;<samp>cfv1</samp>&rsquo;, &lsquo;<samp>cfv2</samp>&rsquo;, &lsquo;<samp>cfv3</samp>&rsquo;, &lsquo;<samp>cfv4</samp>&rsquo; and &lsquo;<samp>cfv4e</samp>&rsquo;.
  146. </p>
  147. <p>You can also use <samp>-mtune=68020-40</samp> for code that needs
  148. to run relatively well on 68020, 68030 and 68040 targets.
  149. <samp>-mtune=68020-60</samp> is similar but includes 68060 targets
  150. as well. These two options select the same tuning decisions as
  151. <samp>-m68020-40</samp> and <samp>-m68020-60</samp> respectively.
  152. </p>
  153. <p>GCC defines the macros <code>__mc<var>arch</var></code> and <code>__mc<var>arch</var>__</code>
  154. when tuning for 680x0 architecture <var>arch</var>. It also defines
  155. <code>mc<var>arch</var></code> unless either <samp>-ansi</samp> or a non-GNU <samp>-std</samp>
  156. option is used. If GCC is tuning for a range of architectures,
  157. as selected by <samp>-mtune=68020-40</samp> or <samp>-mtune=68020-60</samp>,
  158. it defines the macros for every architecture in the range.
  159. </p>
  160. <p>GCC also defines the macro <code>__m<var>uarch</var>__</code> when tuning for
  161. ColdFire microarchitecture <var>uarch</var>, where <var>uarch</var> is one
  162. of the arguments given above.
  163. </p>
  164. </dd>
  165. <dt><code>-m68000</code></dt>
  166. <dt><code>-mc68000</code></dt>
  167. <dd><a name="index-m68000"></a>
  168. <a name="index-mc68000"></a>
  169. <p>Generate output for a 68000. This is the default
  170. when the compiler is configured for 68000-based systems.
  171. It is equivalent to <samp>-march=68000</samp>.
  172. </p>
  173. <p>Use this option for microcontrollers with a 68000 or EC000 core,
  174. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  175. </p>
  176. </dd>
  177. <dt><code>-m68010</code></dt>
  178. <dd><a name="index-m68010"></a>
  179. <p>Generate output for a 68010. This is the default
  180. when the compiler is configured for 68010-based systems.
  181. It is equivalent to <samp>-march=68010</samp>.
  182. </p>
  183. </dd>
  184. <dt><code>-m68020</code></dt>
  185. <dt><code>-mc68020</code></dt>
  186. <dd><a name="index-m68020"></a>
  187. <a name="index-mc68020"></a>
  188. <p>Generate output for a 68020. This is the default
  189. when the compiler is configured for 68020-based systems.
  190. It is equivalent to <samp>-march=68020</samp>.
  191. </p>
  192. </dd>
  193. <dt><code>-m68030</code></dt>
  194. <dd><a name="index-m68030"></a>
  195. <p>Generate output for a 68030. This is the default when the compiler is
  196. configured for 68030-based systems. It is equivalent to
  197. <samp>-march=68030</samp>.
  198. </p>
  199. </dd>
  200. <dt><code>-m68040</code></dt>
  201. <dd><a name="index-m68040"></a>
  202. <p>Generate output for a 68040. This is the default when the compiler is
  203. configured for 68040-based systems. It is equivalent to
  204. <samp>-march=68040</samp>.
  205. </p>
  206. <p>This option inhibits the use of 68881/68882 instructions that have to be
  207. emulated by software on the 68040. Use this option if your 68040 does not
  208. have code to emulate those instructions.
  209. </p>
  210. </dd>
  211. <dt><code>-m68060</code></dt>
  212. <dd><a name="index-m68060"></a>
  213. <p>Generate output for a 68060. This is the default when the compiler is
  214. configured for 68060-based systems. It is equivalent to
  215. <samp>-march=68060</samp>.
  216. </p>
  217. <p>This option inhibits the use of 68020 and 68881/68882 instructions that
  218. have to be emulated by software on the 68060. Use this option if your 68060
  219. does not have code to emulate those instructions.
  220. </p>
  221. </dd>
  222. <dt><code>-mcpu32</code></dt>
  223. <dd><a name="index-mcpu32"></a>
  224. <p>Generate output for a CPU32. This is the default
  225. when the compiler is configured for CPU32-based systems.
  226. It is equivalent to <samp>-march=cpu32</samp>.
  227. </p>
  228. <p>Use this option for microcontrollers with a
  229. CPU32 or CPU32+ core, including the 68330, 68331, 68332, 68333, 68334,
  230. 68336, 68340, 68341, 68349 and 68360.
  231. </p>
  232. </dd>
  233. <dt><code>-m5200</code></dt>
  234. <dd><a name="index-m5200"></a>
  235. <p>Generate output for a 520X ColdFire CPU. This is the default
  236. when the compiler is configured for 520X-based systems.
  237. It is equivalent to <samp>-mcpu=5206</samp>, and is now deprecated
  238. in favor of that option.
  239. </p>
  240. <p>Use this option for microcontroller with a 5200 core, including
  241. the MCF5202, MCF5203, MCF5204 and MCF5206.
  242. </p>
  243. </dd>
  244. <dt><code>-m5206e</code></dt>
  245. <dd><a name="index-m5206e"></a>
  246. <p>Generate output for a 5206e ColdFire CPU. The option is now
  247. deprecated in favor of the equivalent <samp>-mcpu=5206e</samp>.
  248. </p>
  249. </dd>
  250. <dt><code>-m528x</code></dt>
  251. <dd><a name="index-m528x"></a>
  252. <p>Generate output for a member of the ColdFire 528X family.
  253. The option is now deprecated in favor of the equivalent
  254. <samp>-mcpu=528x</samp>.
  255. </p>
  256. </dd>
  257. <dt><code>-m5307</code></dt>
  258. <dd><a name="index-m5307"></a>
  259. <p>Generate output for a ColdFire 5307 CPU. The option is now deprecated
  260. in favor of the equivalent <samp>-mcpu=5307</samp>.
  261. </p>
  262. </dd>
  263. <dt><code>-m5407</code></dt>
  264. <dd><a name="index-m5407"></a>
  265. <p>Generate output for a ColdFire 5407 CPU. The option is now deprecated
  266. in favor of the equivalent <samp>-mcpu=5407</samp>.
  267. </p>
  268. </dd>
  269. <dt><code>-mcfv4e</code></dt>
  270. <dd><a name="index-mcfv4e"></a>
  271. <p>Generate output for a ColdFire V4e family CPU (e.g. 547x/548x).
  272. This includes use of hardware floating-point instructions.
  273. The option is equivalent to <samp>-mcpu=547x</samp>, and is now
  274. deprecated in favor of that option.
  275. </p>
  276. </dd>
  277. <dt><code>-m68020-40</code></dt>
  278. <dd><a name="index-m68020_002d40"></a>
  279. <p>Generate output for a 68040, without using any of the new instructions.
  280. This results in code that can run relatively efficiently on either a
  281. 68020/68881 or a 68030 or a 68040. The generated code does use the
  282. 68881 instructions that are emulated on the 68040.
  283. </p>
  284. <p>The option is equivalent to <samp>-march=68020</samp> <samp>-mtune=68020-40</samp>.
  285. </p>
  286. </dd>
  287. <dt><code>-m68020-60</code></dt>
  288. <dd><a name="index-m68020_002d60"></a>
  289. <p>Generate output for a 68060, without using any of the new instructions.
  290. This results in code that can run relatively efficiently on either a
  291. 68020/68881 or a 68030 or a 68040. The generated code does use the
  292. 68881 instructions that are emulated on the 68060.
  293. </p>
  294. <p>The option is equivalent to <samp>-march=68020</samp> <samp>-mtune=68020-60</samp>.
  295. </p>
  296. </dd>
  297. <dt><code>-mhard-float</code></dt>
  298. <dt><code>-m68881</code></dt>
  299. <dd><a name="index-mhard_002dfloat-2"></a>
  300. <a name="index-m68881"></a>
  301. <p>Generate floating-point instructions. This is the default for 68020
  302. and above, and for ColdFire devices that have an FPU. It defines the
  303. macro <code>__HAVE_68881__</code> on M680x0 targets and <code>__mcffpu__</code>
  304. on ColdFire targets.
  305. </p>
  306. </dd>
  307. <dt><code>-msoft-float</code></dt>
  308. <dd><a name="index-msoft_002dfloat-5"></a>
  309. <p>Do not generate floating-point instructions; use library calls instead.
  310. This is the default for 68000, 68010, and 68832 targets. It is also
  311. the default for ColdFire devices that have no FPU.
  312. </p>
  313. </dd>
  314. <dt><code>-mdiv</code></dt>
  315. <dt><code>-mno-div</code></dt>
  316. <dd><a name="index-mdiv-1"></a>
  317. <a name="index-mno_002ddiv"></a>
  318. <p>Generate (do not generate) ColdFire hardware divide and remainder
  319. instructions. If <samp>-march</samp> is used without <samp>-mcpu</samp>,
  320. the default is &ldquo;on&rdquo; for ColdFire architectures and &ldquo;off&rdquo; for M680x0
  321. architectures. Otherwise, the default is taken from the target CPU
  322. (either the default CPU, or the one specified by <samp>-mcpu</samp>). For
  323. example, the default is &ldquo;off&rdquo; for <samp>-mcpu=5206</samp> and &ldquo;on&rdquo; for
  324. <samp>-mcpu=5206e</samp>.
  325. </p>
  326. <p>GCC defines the macro <code>__mcfhwdiv__</code> when this option is enabled.
  327. </p>
  328. </dd>
  329. <dt><code>-mshort</code></dt>
  330. <dd><a name="index-mshort"></a>
  331. <p>Consider type <code>int</code> to be 16 bits wide, like <code>short int</code>.
  332. Additionally, parameters passed on the stack are also aligned to a
  333. 16-bit boundary even on targets whose API mandates promotion to 32-bit.
  334. </p>
  335. </dd>
  336. <dt><code>-mno-short</code></dt>
  337. <dd><a name="index-mno_002dshort"></a>
  338. <p>Do not consider type <code>int</code> to be 16 bits wide. This is the default.
  339. </p>
  340. </dd>
  341. <dt><code>-mnobitfield</code></dt>
  342. <dt><code>-mno-bitfield</code></dt>
  343. <dd><a name="index-mnobitfield"></a>
  344. <a name="index-mno_002dbitfield"></a>
  345. <p>Do not use the bit-field instructions. The <samp>-m68000</samp>, <samp>-mcpu32</samp>
  346. and <samp>-m5200</samp> options imply <samp><span class="nolinebreak">-mnobitfield</span></samp><!-- /@w -->.
  347. </p>
  348. </dd>
  349. <dt><code>-mbitfield</code></dt>
  350. <dd><a name="index-mbitfield"></a>
  351. <p>Do use the bit-field instructions. The <samp>-m68020</samp> option implies
  352. <samp>-mbitfield</samp>. This is the default if you use a configuration
  353. designed for a 68020.
  354. </p>
  355. </dd>
  356. <dt><code>-mrtd</code></dt>
  357. <dd><a name="index-mrtd"></a>
  358. <p>Use a different function-calling convention, in which functions
  359. that take a fixed number of arguments return with the <code>rtd</code>
  360. instruction, which pops their arguments while returning. This
  361. saves one instruction in the caller since there is no need to pop
  362. the arguments there.
  363. </p>
  364. <p>This calling convention is incompatible with the one normally
  365. used on Unix, so you cannot use it if you need to call libraries
  366. compiled with the Unix compiler.
  367. </p>
  368. <p>Also, you must provide function prototypes for all functions that
  369. take variable numbers of arguments (including <code>printf</code>);
  370. otherwise incorrect code is generated for calls to those
  371. functions.
  372. </p>
  373. <p>In addition, seriously incorrect code results if you call a
  374. function with too many arguments. (Normally, extra arguments are
  375. harmlessly ignored.)
  376. </p>
  377. <p>The <code>rtd</code> instruction is supported by the 68010, 68020, 68030,
  378. 68040, 68060 and CPU32 processors, but not by the 68000 or 5200.
  379. </p>
  380. <p>The default is <samp>-mno-rtd</samp>.
  381. </p>
  382. </dd>
  383. <dt><code>-malign-int</code></dt>
  384. <dt><code>-mno-align-int</code></dt>
  385. <dd><a name="index-malign_002dint"></a>
  386. <a name="index-mno_002dalign_002dint"></a>
  387. <p>Control whether GCC aligns <code>int</code>, <code>long</code>, <code>long long</code>,
  388. <code>float</code>, <code>double</code>, and <code>long double</code> variables on a 32-bit
  389. boundary (<samp>-malign-int</samp>) or a 16-bit boundary (<samp>-mno-align-int</samp>).
  390. Aligning variables on 32-bit boundaries produces code that runs somewhat
  391. faster on processors with 32-bit busses at the expense of more memory.
  392. </p>
  393. <p><strong>Warning:</strong> if you use the <samp>-malign-int</samp> switch, GCC
  394. aligns structures containing the above types differently than
  395. most published application binary interface specifications for the m68k.
  396. </p>
  397. <a name="index-mpcrel"></a>
  398. <p>Use the pc-relative addressing mode of the 68000 directly, instead of
  399. using a global offset table. At present, this option implies <samp>-fpic</samp>,
  400. allowing at most a 16-bit offset for pc-relative addressing. <samp>-fPIC</samp> is
  401. not presently supported with <samp>-mpcrel</samp>, though this could be supported for
  402. 68020 and higher processors.
  403. </p>
  404. </dd>
  405. <dt><code>-mno-strict-align</code></dt>
  406. <dt><code>-mstrict-align</code></dt>
  407. <dd><a name="index-mno_002dstrict_002dalign-1"></a>
  408. <a name="index-mstrict_002dalign-1"></a>
  409. <p>Do not (do) assume that unaligned memory references are handled by
  410. the system.
  411. </p>
  412. </dd>
  413. <dt><code>-msep-data</code></dt>
  414. <dd><p>Generate code that allows the data segment to be located in a different
  415. area of memory from the text segment. This allows for execute-in-place in
  416. an environment without virtual memory management. This option implies
  417. <samp>-fPIC</samp>.
  418. </p>
  419. </dd>
  420. <dt><code>-mno-sep-data</code></dt>
  421. <dd><p>Generate code that assumes that the data segment follows the text segment.
  422. This is the default.
  423. </p>
  424. </dd>
  425. <dt><code>-mid-shared-library</code></dt>
  426. <dd><p>Generate code that supports shared libraries via the library ID method.
  427. This allows for execute-in-place and shared libraries in an environment
  428. without virtual memory management. This option implies <samp>-fPIC</samp>.
  429. </p>
  430. </dd>
  431. <dt><code>-mno-id-shared-library</code></dt>
  432. <dd><p>Generate code that doesn&rsquo;t assume ID-based shared libraries are being used.
  433. This is the default.
  434. </p>
  435. </dd>
  436. <dt><code>-mshared-library-id=n</code></dt>
  437. <dd><p>Specifies the identification number of the ID-based shared library being
  438. compiled. Specifying a value of 0 generates more compact code; specifying
  439. other values forces the allocation of that number to the current
  440. library, but is no more space- or time-efficient than omitting this option.
  441. </p>
  442. </dd>
  443. <dt><code>-mxgot</code></dt>
  444. <dt><code>-mno-xgot</code></dt>
  445. <dd><a name="index-mxgot"></a>
  446. <a name="index-mno_002dxgot"></a>
  447. <p>When generating position-independent code for ColdFire, generate code
  448. that works if the GOT has more than 8192 entries. This code is
  449. larger and slower than code generated without this option. On M680x0
  450. processors, this option is not needed; <samp>-fPIC</samp> suffices.
  451. </p>
  452. <p>GCC normally uses a single instruction to load values from the GOT.
  453. While this is relatively efficient, it only works if the GOT
  454. is smaller than about 64k. Anything larger causes the linker
  455. to report an error such as:
  456. </p>
  457. <a name="index-relocation-truncated-to-fit-_0028ColdFire_0029"></a>
  458. <div class="smallexample">
  459. <pre class="smallexample">relocation truncated to fit: R_68K_GOT16O foobar
  460. </pre></div>
  461. <p>If this happens, you should recompile your code with <samp>-mxgot</samp>.
  462. It should then work with very large GOTs. However, code generated with
  463. <samp>-mxgot</samp> is less efficient, since it takes 4 instructions to fetch
  464. the value of a global symbol.
  465. </p>
  466. <p>Note that some linkers, including newer versions of the GNU linker,
  467. can create multiple GOTs and sort GOT entries. If you have such a linker,
  468. you should only need to use <samp>-mxgot</samp> when compiling a single
  469. object file that accesses more than 8192 GOT entries. Very few do.
  470. </p>
  471. <p>These options have no effect unless GCC is generating
  472. position-independent code.
  473. </p>
  474. </dd>
  475. <dt><code>-mlong-jump-table-offsets</code></dt>
  476. <dd><a name="index-mlong_002djump_002dtable_002doffsets"></a>
  477. <p>Use 32-bit offsets in <code>switch</code> tables. The default is to use
  478. 16-bit offsets.
  479. </p>
  480. </dd>
  481. </dl>
  482. <hr>
  483. <div class="header">
  484. <p>
  485. Next: <a href="MCore-Options.html#MCore-Options" accesskey="n" rel="next">MCore Options</a>, Previous: <a href="M32R_002fD-Options.html#M32R_002fD-Options" accesskey="p" rel="prev">M32R/D Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  486. </div>
  487. </body>
  488. </html>