SIZE(1) UNIX Programmer's Manual SIZE(1) NAME size - size of an object file SYNTAX size [ objects ... ] DESCRIPTION _S_i_z_e prints on standard output the number of bytes required for text, initialized data, and uninitialized data (bss). It also prints the sum of these three numbers in decimal and in octal. For overlaid objects, the sizes of the base and each overlay segment are also printed. If no objects are specified, a.out is used. Note: on a separate I/D machine, the maximum size allowed for nonoverlaid separate I and D objects (-i option for _l_d(1)) is 65536 bytes for text and 57344 for data since 8192 bytes of data space are used for the stack. For standard object files the limit is 57344. SEE ALSO nostk(2), a.out(5) BUGS The compilers and loader store size as an unsigned integer and do not check to see if the value becomes too large. Thus the size is truncated for values above 16 bits and your program may blow up without reasonable error messages. EXAMPLES For nonoverlaid objects, the output looks like: text data bss dec oct 6272 + 1014 + 2670 = 9956 = 23344 /bin/cc For overlaid objects: text data bss dec oct 14848 + 4582 + 11770 = 31200 = 74740 /usr/ucb/ex 78528 total text, overlays: (15808,15936,15616,16320) Printed 5/16/83 1