1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<!-- This file documents the GNU Assembler "as". 4 5Copyright (C) 1991-2021 Free Software Foundation, Inc. 6 7Permission is granted to copy, distribute and/or modify this document 8under the terms of the GNU Free Documentation License, Version 1.3 9or any later version published by the Free Software Foundation; 10with no Invariant Sections, with no Front-Cover Texts, and with no 11Back-Cover Texts. A copy of the license is included in the 12section entitled "GNU Free Documentation License". 13 --> 14<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 15<head> 16<title>Using as: ARC Options</title> 17 18<meta name="description" content="Using as: ARC Options"> 19<meta name="keywords" content="Using as: ARC Options"> 20<meta name="resource-type" content="document"> 21<meta name="distribution" content="global"> 22<meta name="Generator" content="makeinfo"> 23<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 24<link href="index.html#Top" rel="start" title="Top"> 25<link href="AS-Index.html#AS-Index" rel="index" title="AS Index"> 26<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> 27<link href="ARC_002dDependent.html#ARC_002dDependent" rel="up" title="ARC-Dependent"> 28<link href="ARC-Syntax.html#ARC-Syntax" rel="next" title="ARC Syntax"> 29<link href="ARC_002dDependent.html#ARC_002dDependent" rel="previous" title="ARC-Dependent"> 30<style type="text/css"> 31<!-- 32a.summary-letter {text-decoration: none} 33blockquote.smallquotation {font-size: smaller} 34div.display {margin-left: 3.2em} 35div.example {margin-left: 3.2em} 36div.indentedblock {margin-left: 3.2em} 37div.lisp {margin-left: 3.2em} 38div.smalldisplay {margin-left: 3.2em} 39div.smallexample {margin-left: 3.2em} 40div.smallindentedblock {margin-left: 3.2em; font-size: smaller} 41div.smalllisp {margin-left: 3.2em} 42kbd {font-style:oblique} 43pre.display {font-family: inherit} 44pre.format {font-family: inherit} 45pre.menu-comment {font-family: serif} 46pre.menu-preformatted {font-family: serif} 47pre.smalldisplay {font-family: inherit; font-size: smaller} 48pre.smallexample {font-size: smaller} 49pre.smallformat {font-family: inherit; font-size: smaller} 50pre.smalllisp {font-size: smaller} 51span.nocodebreak {white-space:nowrap} 52span.nolinebreak {white-space:nowrap} 53span.roman {font-family:serif; font-weight:normal} 54span.sansserif {font-family:sans-serif; font-weight:normal} 55ul.no-bullet {list-style: none} 56--> 57</style> 58 59 60</head> 61 62<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> 63<a name="ARC-Options"></a> 64<div class="header"> 65<p> 66Next: <a href="ARC-Syntax.html#ARC-Syntax" accesskey="n" rel="next">ARC Syntax</a>, Up: <a href="ARC_002dDependent.html#ARC_002dDependent" accesskey="u" rel="up">ARC-Dependent</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p> 67</div> 68<hr> 69<a name="Options-2"></a> 70<h4 class="subsection">9.3.1 Options</h4> 71<a name="index-ARC-options"></a> 72<a name="index-options-for-ARC"></a> 73 74<p>The following options control the type of CPU for which code is 75assembled, and generic constraints on the code generated: 76</p> 77<dl compact="compact"> 78<dt><code>-mcpu=<var>cpu</var></code></dt> 79<dd><a name="index-_002dmcpu_003dcpu-command_002dline-option_002c-ARC"></a> 80<p>Set architecture type and register usage for <var>cpu</var>. There are 81also shortcut alias options available for backward compatibility and 82convenience. Supported values for <var>cpu</var> are 83</p> 84<dl compact="compact"> 85<dd><a name="index-mA6-command_002dline-option_002c-ARC"></a> 86<a name="index-marc600-command_002dline-option_002c-ARC"></a> 87</dd> 88<dt><code>arc600</code></dt> 89<dd><p>Assemble for ARC 600. Aliases: <code>-mA6</code>, <code>-mARC600</code>. 90</p> 91</dd> 92<dt><code>arc600_norm</code></dt> 93<dd><p>Assemble for ARC 600 with norm instructions. 94</p> 95</dd> 96<dt><code>arc600_mul64</code></dt> 97<dd><p>Assemble for ARC 600 with mul64 instructions. 98</p> 99</dd> 100<dt><code>arc600_mul32x16</code></dt> 101<dd><p>Assemble for ARC 600 with mul32x16 instructions. 102</p> 103</dd> 104<dt><code>arc601</code></dt> 105<dd><a name="index-mARC601-command_002dline-option_002c-ARC"></a> 106<p>Assemble for ARC 601. Alias: <code>-mARC601</code>. 107</p> 108</dd> 109<dt><code>arc601_norm</code></dt> 110<dd><p>Assemble for ARC 601 with norm instructions. 111</p> 112</dd> 113<dt><code>arc601_mul64</code></dt> 114<dd><p>Assemble for ARC 601 with mul64 instructions. 115</p> 116</dd> 117<dt><code>arc601_mul32x16</code></dt> 118<dd><p>Assemble for ARC 601 with mul32x16 instructions. 119</p> 120</dd> 121<dt><code>arc700</code></dt> 122<dd><a name="index-mA7-command_002dline-option_002c-ARC"></a> 123<a name="index-mARC700-command_002dline-option_002c-ARC"></a> 124<p>Assemble for ARC 700. Aliases: <code>-mA7</code>, <code>-mARC700</code>. 125</p> 126</dd> 127<dt><code>arcem</code></dt> 128<dd><a name="index-mEM-command_002dline-option_002c-ARC"></a> 129<p>Assemble for ARC EM. Aliases: <code>-mEM</code> 130</p> 131</dd> 132<dt><code>em</code></dt> 133<dd><p>Assemble for ARC EM, identical as arcem variant. 134</p> 135</dd> 136<dt><code>em4</code></dt> 137<dd><p>Assemble for ARC EM with code-density instructions. 138</p> 139</dd> 140<dt><code>em4_dmips</code></dt> 141<dd><p>Assemble for ARC EM with code-density instructions. 142</p> 143</dd> 144<dt><code>em4_fpus</code></dt> 145<dd><p>Assemble for ARC EM with code-density instructions. 146</p> 147</dd> 148<dt><code>em4_fpuda</code></dt> 149<dd><p>Assemble for ARC EM with code-density, and double-precision assist 150instructions. 151</p> 152</dd> 153<dt><code>quarkse_em</code></dt> 154<dd><p>Assemble for QuarkSE-EM cpu. 155</p> 156</dd> 157<dt><code>archs</code></dt> 158<dd><a name="index-mHS-command_002dline-option_002c-ARC"></a> 159<p>Assemble for ARC HS. Aliases: <code>-mHS</code>, <code>-mav2hs</code>. 160</p> 161</dd> 162<dt><code>hs</code></dt> 163<dd><p>Assemble for ARC HS. 164</p> 165</dd> 166<dt><code>hs34</code></dt> 167<dd><p>Assemble for ARC HS34. 168</p> 169</dd> 170<dt><code>hs38</code></dt> 171<dd><p>Assemble for ARC HS38. 172</p> 173</dd> 174<dt><code>hs38_linux</code></dt> 175<dd><p>Assemble for ARC HS38 with floating point support on. 176</p> 177</dd> 178<dt><code>nps400</code></dt> 179<dd><a name="index-mnps400-command_002dline-option_002c-ARC"></a> 180<p>Assemble for ARC 700 with NPS-400 extended instructions. 181</p> 182</dd> 183</dl> 184 185<p>Note: the <code>.cpu</code> directive (see <a href="ARC-Directives.html#ARC-Directives">ARC Directives</a>) can 186to be used to select a core variant from within assembly code. 187</p> 188<a name="index-_002dEB-command_002dline-option_002c-ARC"></a> 189</dd> 190<dt><code>-EB</code></dt> 191<dd><p>This option specifies that the output generated by the assembler should 192be marked as being encoded for a big-endian processor. 193</p> 194<a name="index-_002dEL-command_002dline-option_002c-ARC"></a> 195</dd> 196<dt><code>-EL</code></dt> 197<dd><p>This option specifies that the output generated by the assembler should 198be marked as being encoded for a little-endian processor - this is the 199default. 200</p> 201<a name="index-_002dmcode_002ddensity-command_002dline-option_002c-ARC"></a> 202</dd> 203<dt><code>-mcode-density</code></dt> 204<dd><p>This option turns on Code Density instructions. Only valid for ARC EM 205processors. 206</p> 207<a name="index-_002dmrelax-command_002dline-option_002c-ARC"></a> 208</dd> 209<dt><code>-mrelax</code></dt> 210<dd><p>Enable support for assembly-time relaxation. The assembler will 211replace a longer version of an instruction with a shorter one, 212whenever it is possible. 213</p> 214<a name="index-_002dmnps400-command_002dline-option_002c-ARC"></a> 215</dd> 216<dt><code>-mnps400</code></dt> 217<dd><p>Enable support for NPS-400 extended instructions. 218</p> 219<a name="index-_002dmspfp-command_002dline-option_002c-ARC"></a> 220</dd> 221<dt><code>-mspfp</code></dt> 222<dd><p>Enable support for single-precision floating point instructions. 223</p> 224<a name="index-_002dmdpfp-command_002dline-option_002c-ARC"></a> 225</dd> 226<dt><code>-mdpfp</code></dt> 227<dd><p>Enable support for double-precision floating point instructions. 228</p> 229<a name="index-_002dmfpuda-command_002dline-option_002c-ARC"></a> 230</dd> 231<dt><code>-mfpuda</code></dt> 232<dd><p>Enable support for double-precision assist floating point instructions. 233Only valid for ARC EM processors. 234</p> 235</dd> 236</dl> 237 238<hr> 239<div class="header"> 240<p> 241Next: <a href="ARC-Syntax.html#ARC-Syntax" accesskey="n" rel="next">ARC Syntax</a>, Up: <a href="ARC_002dDependent.html#ARC_002dDependent" accesskey="u" rel="up">ARC-Dependent</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p> 242</div> 243 244 245 246</body> 247</html> 248