SIZE(1) — UNIX Programmer’s Manual
NAME
size − size of an object file
SYNOPSIS
size [ option ] [ object ... ]
DESCRIPTION
Size (without the −m option) prints the (decimal) number of bytes required by the __TEXT, __DATA and __OBJC segments. All other segments are totaled and that size is listed in the ‘others’ column. The final two columns is the sum in hex and decimal. If no file is specified, a.out is used.
There is one option to size(1):
−m Print the sizes of the Mach-O segments and sections as well as the total sizes of the sections in each segment and the total size of the segments in the file.
SEE ALSO
BUGS
The size of common symbols can’t be reflected in any of the numbers for relocatable object files.
7th Edition — June 14, 1989