tail head cat sleep
QR code linking to this page

manページ  — SIZE

名称

size - セクションサイズと全体のサイズを表示する

内容

書式

size [-A|-B|--format=compatibility]
[--help]
[-d|-o|-x|--radix=number]
[-t|--totals]
[--target=bfdname] [-V|--version]
[objfile...]

解説

GNUsize ユーティリティは、引数リスト中の各オブジェクトファイル objfile に対し、そのセクションサイズ --- 及び全体サイズ --- を表示します。 デフォルトでは、各オブジェクトファイルないしアーカイブ中の 各モジュールごとに 1 行ずつ出力します。

objfile... は、検査対象のオブジェクトファイルです。 なにも指定しないと、a.out ファイルが使用されます。

オプション

コマンド行オプションは次の意味を持ちます:
-A
-B
--format=compatibility これらのオプションの 1 つを用いて、GNU size の出力形式を、System V の size 形式風にする ( -A 又は --format=sysv を用いる) か、Berkeley の size 形式風にする ( -B 又は --format=berkeley を用いる) かを選択します。 デフォルトは Berkeley 形式に似た 1 行フォーマットです。

次の例は、Berkeley (デフォルト) フォーマットの size の出力です:

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

同じデータですが、System V 規約に近い形式で表示しています:

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

amp;        size  :
amp;        section         size         addr
amp;        .text         294880         8192      
amp;        .data          81920       303104      
amp;        .bss           11888       385024      
amp;        Total         388688
--help 利用可能な引数及びオプションの要約を表示します。
-d
-o
-x
--radix=number これらのオプションの 1 つを用いて、各セクションのサイズを 10 進数 (-d 又は --radix 10)、 8 進数 (-o 又は --radix 8)、 16 進数 (-x 又は --radix 16) で表示するようにします。 --radix=number 形式では、3 種類の値 (8, 10, 16) のみサポートされています。 全体サイズは常に 2 種類の基数で表示されます。 -d 又は -x を指定した場合は 10 進数と 16 進数、 -o の場合は 8 進数と 16 進数です。
-t
--totals 列挙した前オブジェクトの総計を表示します (Berkeley フォーマットでの列挙モードのみ)。
--target=bfdname objfile に対し、特定のオブジェクトコードフォーマット bfdname を指定します。この指定は必要ないかもしれません。 size コマンドは多くのフォーマットを自動的に認識します。
-V
--version size のバージョン番号情報を表示します。

関連項目

ar(1), objdump(1), readelf(1), Info の binutils エントリ。

COPYRIGHT

Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002, 2003 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''.


2004-04-09 SIZE (1) binutils-2.14.91

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

UNIX has been evolving feverishly for close to 30 years, sort of like bacteria in a cesspool — only not as attractive
— John Levine, "Unix for Dummies"