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

SEE ALSO

91       ar(1), objdump(1), readelf(1), and the Info entries for binutils.
92
94       Copyright (c) 1991, 1992, 1993, 1994, 1995,  1996,  1997,  1998,  1999,
95       2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
96
97       Permission  is  granted to copy, distribute and/or modify this document
98       under the terms of the GNU Free Documentation License, Version  1.1  or
99       any  later  version  published by the Free Software Foundation; with no
100       Invariant Sections, with no Front-Cover Texts, and with  no  Back-Cover
101       Texts.  A copy of the license is included in the section entitled ``GNU
102       Free Documentation License''.
103
104
105
106binutils-2.15.97                  2005-04-20                           SIZE(1)
Impressum