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: NDS32 Options</title>
17
18<meta name="description" content="Using as: NDS32 Options">
19<meta name="keywords" content="Using as: NDS32 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="NDS32_002dDependent.html#NDS32_002dDependent" rel="up" title="NDS32-Dependent">
28<link href="NDS32-Syntax.html#NDS32-Syntax" rel="next" title="NDS32 Syntax">
29<link href="NDS32_002dDependent.html#NDS32_002dDependent" rel="previous" title="NDS32-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="NDS32-Options"></a>
64<div class="header">
65<p>
66Next: <a href="NDS32-Syntax.html#NDS32-Syntax" accesskey="n" rel="next">NDS32 Syntax</a>, Up: <a href="NDS32_002dDependent.html#NDS32_002dDependent" accesskey="u" rel="up">NDS32-Dependent</a> &nbsp; [<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="NDS32-Options-1"></a>
70<h4 class="subsection">9.30.1 NDS32 Options</h4>
71
72<a name="index-NDS32-options"></a>
73<a name="index-options-for-NDS32"></a>
74<p>The NDS32 configurations of <small>GNU</small> <code>as</code> support these
75special options:
76</p>
77<dl compact="compact">
78<dt><code>-O1</code></dt>
79<dd><p>Optimize for performance.
80</p>
81</dd>
82<dt><code>-Os</code></dt>
83<dd><p>Optimize for space.
84</p>
85</dd>
86<dt><code>-EL</code></dt>
87<dd><p>Produce little endian data output.
88</p>
89</dd>
90<dt><code>-EB</code></dt>
91<dd><p>Produce little endian data output.
92</p>
93</dd>
94<dt><code>-mpic</code></dt>
95<dd><p>Generate PIC.
96</p>
97</dd>
98<dt><code>-mno-fp-as-gp-relax</code></dt>
99<dd><p>Suppress fp-as-gp relaxation for this file.
100</p>
101</dd>
102<dt><code>-mb2bb-relax</code></dt>
103<dd><p>Back-to-back branch optimization.
104</p>
105</dd>
106<dt><code>-mno-all-relax</code></dt>
107<dd><p>Suppress all relaxation for this file.
108</p>
109</dd>
110<dt><code>-march=&lt;arch name&gt;</code></dt>
111<dd><p>Assemble for architecture &lt;arch name&gt; which could be v3, v3j, v3m, v3f,
112v3s, v2, v2j, v2f, v2s.
113</p>
114</dd>
115<dt><code>-mbaseline=&lt;baseline&gt;</code></dt>
116<dd><p>Assemble for baseline &lt;baseline&gt; which could be v2, v3, v3m.
117</p>
118</dd>
119<dt><code>-mfpu-freg=<var>FREG</var></code></dt>
120<dd><p>Specify a FPU configuration.
121</p><dl compact="compact">
122<dt><code>0      8 SP /  4 DP registers</code></dt>
123<dt><code>1     16 SP /  8 DP registers</code></dt>
124<dt><code>2     32 SP / 16 DP registers</code></dt>
125<dt><code>3     32 SP / 32 DP registers</code></dt>
126</dl>
127
128</dd>
129<dt><code>-mabi=<var>abi</var></code></dt>
130<dd><p>Specify a abi version &lt;abi&gt; could be v1, v2, v2fp, v2fpp.
131</p>
132</dd>
133<dt><code>-m[no-]mac</code></dt>
134<dd><p>Enable/Disable Multiply instructions support.
135</p>
136</dd>
137<dt><code>-m[no-]div</code></dt>
138<dd><p>Enable/Disable Divide instructions support.
139</p>
140</dd>
141<dt><code>-m[no-]16bit-ext</code></dt>
142<dd><p>Enable/Disable 16-bit extension
143</p>
144</dd>
145<dt><code>-m[no-]dx-regs</code></dt>
146<dd><p>Enable/Disable d0/d1 registers
147</p>
148</dd>
149<dt><code>-m[no-]perf-ext</code></dt>
150<dd><p>Enable/Disable Performance extension
151</p>
152</dd>
153<dt><code>-m[no-]perf2-ext</code></dt>
154<dd><p>Enable/Disable Performance extension 2
155</p>
156</dd>
157<dt><code>-m[no-]string-ext</code></dt>
158<dd><p>Enable/Disable String extension
159</p>
160</dd>
161<dt><code>-m[no-]reduced-regs</code></dt>
162<dd><p>Enable/Disable Reduced Register configuration (GPR16) option
163</p>
164</dd>
165<dt><code>-m[no-]audio-isa-ext</code></dt>
166<dd><p>Enable/Disable AUDIO ISA extension
167</p>
168</dd>
169<dt><code>-m[no-]fpu-sp-ext</code></dt>
170<dd><p>Enable/Disable FPU SP extension
171</p>
172</dd>
173<dt><code>-m[no-]fpu-dp-ext</code></dt>
174<dd><p>Enable/Disable FPU DP extension
175</p>
176</dd>
177<dt><code>-m[no-]fpu-fma</code></dt>
178<dd><p>Enable/Disable FPU fused-multiply-add instructions
179</p>
180</dd>
181<dt><code>-mall-ext</code></dt>
182<dd><p>Turn on all extensions and instructions support
183</p></dd>
184</dl>
185
186
187
188
189</body>
190</html>
191