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: AVR Options</title>
17
18<meta name="description" content="Using as: AVR Options">
19<meta name="keywords" content="Using as: AVR 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="AVR_002dDependent.html#AVR_002dDependent" rel="up" title="AVR-Dependent">
28<link href="AVR-Syntax.html#AVR-Syntax" rel="next" title="AVR Syntax">
29<link href="AVR_002dDependent.html#AVR_002dDependent" rel="previous" title="AVR-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="AVR-Options"></a>
64<div class="header">
65<p>
66Next: <a href="AVR-Syntax.html#AVR-Syntax" accesskey="n" rel="next">AVR Syntax</a>, Up: <a href="AVR_002dDependent.html#AVR_002dDependent" accesskey="u" rel="up">AVR-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="Options-4"></a>
70<h4 class="subsection">9.5.1 Options</h4>
71<a name="index-AVR-options-_0028none_0029"></a>
72<a name="index-options-for-AVR-_0028none_0029"></a>
73
74<dl compact="compact">
75<dd>
76<a name="index-_002dmmcu_003d-command_002dline-option_002c-AVR"></a>
77</dd>
78<dt><code>-mmcu=<var>mcu</var></code></dt>
79<dd><p>Specify ATMEL AVR instruction set or MCU type.
80</p>
81<p>Instruction set avr1 is for the minimal AVR core, not supported by the C
82compiler, only for assembler programs (MCU types: at90s1200,
83attiny11, attiny12, attiny15, attiny28).
84</p>
85<p>Instruction set avr2 (default) is for the classic AVR core with up to
868K program memory space (MCU types: at90s2313, at90s2323, at90s2333, at90s2343,
87attiny22, attiny26, at90s4414, at90s4433, at90s4434, at90s8515, at90c8534,
88at90s8535).
89</p>
90<p>Instruction set avr25 is for the classic AVR core with up to 8K program memory
91space plus the MOVW instruction (MCU types: attiny13, attiny13a, attiny2313,
92attiny2313a, attiny24, attiny24a, attiny4313, attiny44, attiny44a, attiny84,
93attiny84a, attiny25, attiny45, attiny85, attiny261, attiny261a, attiny461,
94attiny461a, attiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88,
95attiny828, at86rf401, ata6289, ata5272).
96</p>
97<p>Instruction set avr3 is for the classic AVR core with up to 128K program
98memory space (MCU types: at43usb355, at76c711).
99</p>
100<p>Instruction set avr31 is for the classic AVR core with exactly 128K program
101memory space (MCU types: atmega103, at43usb320).
102</p>
103<p>Instruction set avr35 is for classic AVR core plus MOVW, CALL, and JMP
104instructions (MCU types: attiny167, attiny1634, at90usb82, at90usb162,
105atmega8u2, atmega16u2, atmega32u2, ata5505).
106</p>
107<p>Instruction set avr4 is for the enhanced AVR core with up to 8K program
108memory space (MCU types: atmega48, atmega48a, atmega48pa, atmega48p, atmega8,
109atmega8a, atmega88, atmega88a, atmega88p, atmega88pa, atmega8515, atmega8535,
110atmega8hva, at90pwm1, at90pwm2, at90pwm2b, at90pwm3, at90pwm3b, at90pwm81,
111ata6285, ata6286).
112</p>
113<p>Instruction set avr5 is for the enhanced AVR core with up to 128K program
114memory space (MCU types: at90pwm161, atmega16, atmega16a, atmega161, atmega162,
115atmega163, atmega164a, atmega164p, atmega164pa, atmega165, atmega165a,
116atmega165p, atmega165pa, atmega168, atmega168a, atmega168p, atmega168pa,
117atmega169, atmega169a, atmega169p, atmega169pa, atmega32, atmega323, atmega324a,
118atmega324p, atmega324pa, atmega325, atmega325a, atmega32, atmega32a, atmega323,
119atmega324a, atmega324p, atmega324pa, atmega325, atmega325a, atmega325p,
120atmega325p, atmega325pa, atmega3250, atmega3250a, atmega3250p, atmega3250pa,
121atmega328, atmega328p, atmega329, atmega329a, atmega329p, atmega329pa,
122atmega3290a, atmega3290p, atmega3290pa, atmega406, atmega64, atmega64a,
123atmega64rfr2, atmega644rfr2, atmega640, atmega644, atmega644a, atmega644p,
124atmega644pa, atmega645, atmega645a, atmega645p, atmega6450, atmega6450a,
125atmega6450p, atmega649, atmega649a, atmega649p, atmega6490, atmega6490a,
126atmega6490p, atmega16hva, atmega16hva2, atmega16hvb, atmega16hvbrevb,
127atmega32hvb, atmega32hvbrevb, atmega64hve, at90can32, at90can64, at90pwm161,
128at90pwm216, at90pwm316, atmega32c1, atmega64c1, atmega16m1, atmega32m1,
129atmega64m1, atmega16u4, atmega32u4, atmega32u6, at90usb646, at90usb647, at94k,
130at90scr100, ata5790, ata5795).
131</p>
132<p>Instruction set avr51 is for the enhanced AVR core with exactly 128K
133program memory space (MCU types: atmega128, atmega128a, atmega1280,
134atmega1281, atmega1284, atmega1284p, atmega128rfa1, atmega128rfr2,
135atmega1284rfr2, at90can128, at90usb1286, at90usb1287, m3000).
136</p>
137<p>Instruction set avr6 is for the enhanced AVR core with a 3-byte PC
138(MCU types: atmega2560, atmega2561, atmega256rfr2, atmega2564rfr2).
139</p>
140<p>Instruction set avrxmega2 is for the XMEGA AVR core with 8K to 64K
141program memory space and less than 64K data space (MCU types:
142atxmega16a4, atxmega16a4u, atxmega16c4, atxmega16d4, atxmega16x1,
143atxmega32a4, atxmega32a4u, atxmega32c4, atxmega32d4, atxmega16e5,
144atxmega8e5, atxmega32e5, atxmega32x1).
145</p>
146<p>Instruction set avrxmega3 is for the XMEGA AVR core with up to 64K
147of combined program memory and RAM, and with program memory
148visible in the RAM address space (MCU types:
149attiny212, attiny214, attiny412, attiny414, attiny416, attiny417,
150attiny814, attiny816, attiny817, attiny1614, attiny1616, attiny1617,
151attiny3214, attiny3216, attiny3217).
152</p>
153<p>Instruction set avrxmega4 is for the XMEGA AVR core with up to 64K
154program memory space and less than 64K data space (MCU types:
155atxmega64a3, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
156atxmega64c3, atxmega64d3, atxmega64d4).
157</p>
158<p>Instruction set avrxmega5 is for the XMEGA AVR core with up to 64K
159program memory space and greater than 64K data space (MCU types:
160atxmega64a1, atxmega64a1u).
161</p>
162<p>Instruction set avrxmega6 is for the XMEGA AVR core with larger than
16364K program memory space and less than 64K data space (MCU types:
164atxmega128a3, atxmega128a3u, atxmega128c3, atxmega128d3, atxmega128d4,
165atxmega192a3, atxmega192a3u, atxmega128b1, atxmega128b3, atxmega192c3,
166atxmega192d3, atxmega256a3, atxmega256a3u, atxmega256a3b,
167atxmega256a3bu, atxmega256c3, atxmega256d3, atxmega384c3,
168atxmega256d3).
169</p>
170<p>Instruction set avrxmega7 is for the XMEGA AVR core with larger than
17164K program memory space and greater than 64K data space (MCU types:
172atxmega128a1, atxmega128a1u, atxmega128a4u).
173</p>
174<p>Instruction set avrtiny is for the ATtiny4/5/9/10/20/40
175microcontrollers.
176</p>
177<a name="index-_002dmall_002dopcodes-command_002dline-option_002c-AVR"></a>
178</dd>
179<dt><code>-mall-opcodes</code></dt>
180<dd><p>Accept all AVR opcodes, even if not supported by <code>-mmcu</code>.
181</p>
182<a name="index-_002dmno_002dskip_002dbug-command_002dline-option_002c-AVR"></a>
183</dd>
184<dt><code>-mno-skip-bug</code></dt>
185<dd><p>This option disable warnings for skipping two-word instructions.
186</p>
187<a name="index-_002dmno_002dwrap-command_002dline-option_002c-AVR"></a>
188</dd>
189<dt><code>-mno-wrap</code></dt>
190<dd><p>This option reject <code>rjmp/rcall</code> instructions with 8K wrap-around.
191</p>
192<a name="index-_002dmrmw-command_002dline-option_002c-AVR"></a>
193</dd>
194<dt><code>-mrmw</code></dt>
195<dd><p>Accept Read-Modify-Write (<code>XCH,LAC,LAS,LAT</code>) instructions.
196</p>
197<a name="index-_002dmlink_002drelax-command_002dline-option_002c-AVR"></a>
198</dd>
199<dt><code>-mlink-relax</code></dt>
200<dd><p>Enable support for link-time relaxation.  This is now on by default
201and this flag no longer has any effect.
202</p>
203<a name="index-_002dmno_002dlink_002drelax-command_002dline-option_002c-AVR"></a>
204</dd>
205<dt><code>-mno-link-relax</code></dt>
206<dd><p>Disable support for link-time relaxation.  The assembler will resolve
207relocations when it can, and may be able to better compress some debug
208information.
209</p>
210<a name="index-_002dmgcc_002disr-command_002dline-option_002c-AVR"></a>
211</dd>
212<dt><code>-mgcc-isr</code></dt>
213<dd><p>Enable the <code>__gcc_isr</code> pseudo instruction.
214</p>
215</dd>
216</dl>
217
218
219<hr>
220<div class="header">
221<p>
222Next: <a href="AVR-Syntax.html#AVR-Syntax" accesskey="n" rel="next">AVR Syntax</a>, Up: <a href="AVR_002dDependent.html#AVR_002dDependent" accesskey="u" rel="up">AVR-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>
223</div>
224
225
226
227</body>
228</html>
229