1SIZE(1)                      GNU Development Tools                     SIZE(1)
2
3
4

NAME

6       size - list section sizes and total size.
7

SYNOPSIS

9       size [-A-B--format=compatibility]
10            [--help]
11            [-d-o-x--radix=number]
12            [-t--totals]
13            [--target=bfdname] [-V--version]
14            [objfile...]
15

DESCRIPTION

17       The GNU size utility lists the section sizes---and the total size---for
18       each of the object or archive files objfile in its argument  list.   By
19       default,  one  line of output is generated for each object file or each
20       module in an archive.
21
22       objfile... are the object files to be examined.  If none are specified,
23       the file "a.out" will be used.
24

OPTIONS

26       The command line options have the following meanings:
27
28       -A
29       -B
30       --format=compatibility
31           Using  one of these options, you can choose whether the output from
32           GNU size resembles output from System V size (using -A,  or  --for‐
33           mat=sysv),  or Berkeley size (using -B, or --format=berkeley).  The
34           default is the one-line format similar to Berkeley's.
35
36           Here is an example of the Berkeley (default) format of output  from
37           size:
38
39                   $ size --format=Berkeley ranlib size
40                   text    data    bss     dec     hex     filename
41                   294880  81920   11592   388392  5ed28   ranlib
42                   294880  81920   11888   388688  5ee50   size
43
44           This  is  the  same  data, but displayed closer to System V conven‐
45           tions:
46
47                   $ size --format=SysV ranlib size
48                   ranlib  :
49                   section         size         addr
50                   .text         294880         8192
51                   .data          81920       303104
52                   .bss           11592       385024
53                   Total         388392
54
55                   size  :
56                   section         size         addr
57                   .text         294880         8192
58                   .data          81920       303104
59                   .bss           11888       385024
60                   Total         388688
61
62       --help
63           Show a summary of acceptable arguments and options.
64
65       -d
66       -o
67       -x
68       --radix=number
69           Using one of these options, you can control  whether  the  size  of
70           each section is given in decimal (-d, or --radix=10); octal (-o, or
71           --radix=8); or hexadecimal (-x, or --radix=16).  In --radix=number,
72           only the three values (8, 10, 16) are supported.  The total size is
73           always given in two radices; decimal and hexadecimal for -d  or  -x
74           output, or octal and hexadecimal if you're using -o.
75
76       -t
77       --totals
78           Show  totals  of  all  objects listed (Berkeley format listing mode
79           only).
80
81       --target=bfdname
82           Specify that the object-code format for objfile is  bfdname.   This
83           option  may not be necessary; size can automatically recognize many
84           formats.
85
86       -V
87       --version
88           Display the version number of size.
89
90       @file
91           Read command-line options from file.  The options read are inserted
92           in  place of the original @file option.  If file does not exist, or
93           cannot be read, then the option will be treated literally, and  not
94           removed.
95
96           Options  in file are separated by whitespace.  A whitespace charac‐
97           ter may be included in an option by surrounding the  entire  option
98           in  either  single  or  double  quotes.  Any character (including a
99           backslash) may  be  included  by  prefixing  the  character  to  be
100           included  with a backslash.  The file may itself contain additional
101           @file options; any such options will be processed recursively.
102

SEE ALSO

104       ar(1), objdump(1), readelf(1), and the Info entries for binutils.
105
107       Copyright (c) 1991, 1992, 1993, 1994, 1995,  1996,  1997,  1998,  1999,
108       2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
109
110       Permission  is  granted to copy, distribute and/or modify this document
111       under the terms of the GNU Free Documentation License, Version  1.1  or
112       any  later  version  published by the Free Software Foundation; with no
113       Invariant Sections, with no Front-Cover Texts, and with  no  Back-Cover
114       Texts.   A copy of the license is included in the section entitled "GNU
115       Free Documentation License".
116
117
118
119binutils-2.17.50.0.12-4           2007-04-14                           SIZE(1)
Impressum