1.TH SCC-SIZE 1 scc\-VERSION2.SH NAME3scc-size \- list section sizes of object files4.SH SYNOPSIS5.B scc-size6.RB [ \-t ]7.RI [ file ...]8.SH DESCRIPTION9.B scc-size10lists the sizes of the text, data, and BSS sections of each object11.I file12specified, along with the total size in decimal and hexadecimal.13If no14.I file15arguments are given,16.B scc-size17reads from18.B a.out19by default.20.PP21For each22.IR file ,23.B scc-size24writes a line to standard output containing the following tab-separated fields:25.PP26.RS27.I text data bss dec hex filename28.RE29.PP30where31.I text32is the combined size of the text (code) and read-only data sections,33.I data34is the size of the initialised data sections,35.I bss36is the size of the uninitialised data sections,37.I dec38is the total size in decimal,39.I hex40is the total size in hexadecimal,41and42.I filename43is the name of the file.44.PP45A header line is always printed before the first entry:46.PP47.RS48.EX49text data bss dec hex filename50.EE51.RE52.PP53When processing an archive library,54.B scc-size55reports sizes for each object file member contained within the archive.56Members that are not recognised object files are silently skipped.57.PP58Sections are classified as follows:59.PP60.RS61.PD 062.TP63.B T R64Text and read-only data sections contribute to the65.I text66total.67.TP68.B D69Initialised data sections contribute to the70.I data71total.72.TP73.B B74Uninitialised (BSS) data sections contribute to the75.I bss76total.77.PD78.RE79.PP80Sections of any other type are not counted.81.SH OPTIONS82.TP83.B \-t84Print a totals row after all file entries.85The totals row accumulates the text, data, and BSS sizes across all86processed files (including archive members) and is labelled87.BR (TOTALS) .88.SH OPERANDS89.TP90.I file91A pathname of an object file or archive library whose section sizes are92to be listed.93If no operands are given,94.B scc-size95reads from96.BR a.out .97.SH EXAMPLES98Display the section sizes of an object file:99.IP100.EX101scc-size foo.o102.EE103.PP104Display section sizes for all object files in an archive:105.IP106.EX107scc-size libfoo.a108.EE109.PP110Display section sizes for multiple files with a totals row:111.IP112.EX113scc-size \-t foo.o bar.o baz.o114.EE115.SH STANDARDS116The117.B scc-size118utility is designed to conform to IEEE Std 1003.1-2008 (POSIX.1).119.SH SEE ALSO120.BR scc-ar (1),121.BR scc-nm (1),122.BR scc-strip (1),123.BR scc-objdump (1)