Manual Page Search Parameters

SIZE(1) General Commands Manual SIZE(1)


sizedisplay object file segment sizes (text, data and bss)


size [-tw] [file ...]


size displays the text, data and bss segment sizes of the specified file(s) in bytes (in decimal), and the sum of the three segments (in decimal and hexadecimal). If a library (archive) is given, size displays the segment sizes for each object archive member. If no file is specified size attempts to report on the file a.out.
The options are as follows:
At the end of the output print a total of the sizes of all the object files processed.
Warn about non-object archive members. Normally, size will silently ignore all archive members which are not object files.


nm(1), elf(5)


A size command appeared in Version 6 AT&T UNIX.
October 20, 2013 OpenBSD-current