• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2011.09/share/doc/arm-arm-none-eabi/html/as.html/
1<html lang="en">
2<head>
3<title>Size - Using as</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Using as">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Pseudo-Ops.html#Pseudo-Ops" title="Pseudo Ops">
9<link rel="prev" href="Single.html#Single" title="Single">
10<link rel="next" href="Skip.html#Skip" title="Skip">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<!--
13This file documents the GNU Assembler "as".
14
15Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
162000, 2001, 2002, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
17Inc.
18
19Permission is granted to copy, distribute and/or modify this document
20under the terms of the GNU Free Documentation License, Version 1.3
21or any later version published by the Free Software Foundation;
22with no Invariant Sections, with no Front-Cover Texts, and with no
23Back-Cover Texts.  A copy of the license is included in the
24section entitled ``GNU Free Documentation License''.
25
26-->
27<meta http-equiv="Content-Style-Type" content="text/css">
28<style type="text/css"><!--
29  pre.display { font-family:inherit }
30  pre.format  { font-family:inherit }
31  pre.smalldisplay { font-family:inherit; font-size:smaller }
32  pre.smallformat  { font-family:inherit; font-size:smaller }
33  pre.smallexample { font-size:smaller }
34  pre.smalllisp    { font-size:smaller }
35  span.sc    { font-variant:small-caps }
36  span.roman { font-family:serif; font-weight:normal; } 
37  span.sansserif { font-family:sans-serif; font-weight:normal; } 
38--></style>
39<link rel="stylesheet" type="text/css" href="../cs.css">
40</head>
41<body>
42<div class="node">
43<a name="Size"></a>
44<p>
45Next:&nbsp;<a rel="next" accesskey="n" href="Skip.html#Skip">Skip</a>,
46Previous:&nbsp;<a rel="previous" accesskey="p" href="Single.html#Single">Single</a>,
47Up:&nbsp;<a rel="up" accesskey="u" href="Pseudo-Ops.html#Pseudo-Ops">Pseudo Ops</a>
48<hr>
49</div>
50
51<h3 class="section">7.101 <code>.size</code></h3>
52
53<p>This directive is used to set the size associated with a symbol.
54
55<!-- only print the extra heading if both COFF and ELF are set -->
56<h4 class="subheading">COFF Version</h4>
57
58   <p><a name="index-g_t_0040code_007bsize_007d-directive-_0028COFF-version_0029-451"></a>For COFF targets, the <code>.size</code> directive is only permitted inside
59<code>.def</code>/<code>.endef</code> pairs.  It is used like this:
60
61<pre class="smallexample">     .size <var>expression</var>
62</pre>
63   <!-- only print the extra heading if both COFF and ELF are set -->
64<h4 class="subheading">ELF Version</h4>
65
66   <p><a name="index-g_t_0040code_007bsize_007d-directive-_0028ELF-version_0029-452"></a>For ELF targets, the <code>.size</code> directive is used like this:
67
68<pre class="smallexample">     .size <var>name</var> , <var>expression</var>
69</pre>
70   <p>This directive sets the size associated with a symbol <var>name</var>. 
71The size in bytes is computed from <var>expression</var> which can make use of label
72arithmetic.  This directive is typically used to set the size of function
73symbols.
74
75   </body></html>
76
77