SIZE 1 2005-04-20 binutils-2.15.97 GNU Development Tools

NAME

size - list section sizes and total size.

SYNOPSIS

size [--AA|--BB|----ffoorrmmaatt==_c_o_m_p_a_t_i_b_i_l_i_t_y] [----hheellpp] [--dd|--oo|--xx|----rraaddiixx==_n_u_m_b_e_r] [--tt|----ttoottaallss] [----ttaarrggeett==_b_f_d_n_a_m_e] [--VV|----vveerrssiioonn] [_o_b_j_f_i_l_e...]

DESCRIPTION

The GNU ssiizzee utility lists the section sizes---and the total size---for each of the object or archive files _o_b_j_f_i_l_e in its argument list. By default, one line of output is generated for each object file or each module in an archive.

_o_b_j_f_i_l_e... are the object files to be examined. If none are specified, the file "a.out" will be used.

OPTIONS

The command line options have the following meanings:
--AA
--BB
----ffoorrmmaatt==_c_o_m_p_a_t_i_b_i_l_i_t_y Using one of these options, you can choose whether the output from GNU
ssiizzee resembles output from System V ssiizzee (using --AA, or ----ffoorrmmaatt==ssyyssvv), or Berkeley ssiizzee (using --BB, or ----ffoorrmmaatt==bbeerrkkeelleeyy). The default is the one-line format similar to Berkeley's.

Here is an example of the Berkeley (default) format of output from ssiizzee:



        $ size --format=Berkeley ranlib size
        text    data    bss     dec     hex     filename
        294880  81920   11592   388392  5ed28   ranlib
        294880  81920   11888   388688  5ee50   size


This is the same data, but displayed closer to System V conventions:




        $ size --format=SysV ranlib size
        ranlib  :
        section         size         addr
        .text         294880         8192
        .data          81920       303104
        .bss           11592       385024
        Total         388392




        size  :
        section         size         addr
        .text         294880         8192
        .data          81920       303104
        .bss           11888       385024
        Total         388688
----hheellpp Show a summary of acceptable arguments and options.
--dd
--oo
--xx
----rraaddiixx==_n_u_m_b_e_r Using one of these options, you can control whether the size of each
section is given in decimal (--dd, or ----rraaddiixx==1100); octal (--oo, or ----rraaddiixx==88); or hexadecimal (--xx, or ----rraaddiixx==1166). In ----rraaddiixx==_n_u_m_b_e_r, only the three values (8, 10, 16) are supported. The total size is always given in two radices; decimal and hexadecimal for --dd or --xx output, or octal and hexadecimal if you're using --oo.
--tt
----ttoottaallss Show totals of all objects listed (Berkeley format listing mode only).
----ttaarrggeett==_b_f_d_n_a_m_e Specify that the object-code format for _o_b_j_f_i_l_e is
_b_f_d_n_a_m_e. This option may not be necessary; ssiizzee can automatically recognize many formats.
--VV
----vveerrssiioonn Display the version number of ssiizzee.

SEE ALSO

_a_r(1), _o_b_j_d_u_m_p(1), _r_e_a_d_e_l_f(1), and the Info entries for _b_i_n_u_t_i_l_s. Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''.