objfile... は、検査されるファイルです。何も指定しない場合は、 "a.out" ファイルが代わりに使用されます。
以下は、size の Berkeley(デフォルト) 形式の出力例です:
$ size --format=Berkeley ranlib size text data bss dec hex filename 294880 81920 11592 388392 5ed28 ranlib 294880 81920 11888 388688 5ee50 size
Berkeley スタイルの出力では、 "text" カラムの読み込み専用データがカウントされ、 "data" カラムのデータはカウントされません。 "dec" カラムと "hex" カラムでは、 "text" カラム、 "data" カラム、 "bss" カラムの合計がそれぞれ 10進数と 16進数で表示されます。
GNU 形式では、 "text" カラムではなく "data" カラムの読み込み専用データがカウントされ、 "text" カラム、 "data" カラム、 "bss" カラムの合計が "total" カラムに一度だけ表示されます。 --radix オプションを使用すると、すべての列の基数を変更できます。同じデータを GNU 方式で表示すると、次のようになります:
$ size --format=GNU ranlib size text data bss total filename 279880 96920 11592 388392 ranlib 279880 96920 11888 388688 size
これは同じデータですが、System V の慣習に近い形で表示されています。
$ 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
file 中のオプションは空白で区切られます。空白文字は、オプション 全体を一重引用符または二重引用符で囲むことによってオプションに含める ことができます。任意の文字 (バックスラッシュを含む) は、含まれる文字の 前にバックスラッシュを付けることによって含めることができます。 file 自体に追加の @file オプションを含めることができます。 このようなオプションは再帰的に処理されます。
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 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".