display object file sizes 



size file ...


size displays the sizes of various types of object code.

Files ending with .com are direct memory images. size displays the size of the file itself. Files ending with .exe or .dll are loadable executable files.

For loadable executable files (such as those ending with .exe or .dll), size displays two sizes: the size of the text (including the data) and the size of the so-called stack area to be reserved following the text during execution. In practice, this stack area may also be used for loading overlays and the .exe or .dll file may contain the overlays themselves; no information is given about the overlays.

Each number given is followed by a letter indicating the type of the segment: t indicates text (and initialized data for Windows systems); b indicates uninitialized data (bss); d indicates initialized data; s indicates stack. Other segment names that cannot be resolved into a segment type may be given instead of a letter.

.obj files are Intel Object Module Format (OMF) or Common Object File format (COFF) files. They still contain information on individual segments. The name and size of each segment is given, and a total size of all segments.

.lib files are libraries (archives) which may contain one or more object files in OMF or COFF format. The name and size information is printed for each library member.


Possible exit status values are:


Successful completion.


Failure because a file could not be opened.


Failure because of an invalid command line option, or no file specified.


x/OPEN Portability Guide 4.0. All UNIX systems. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.

Because of a totally different object module and linker format and philosophy, this command is compatible with the UNIX command in name and invocation form only.


PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition



PTC MKS Toolkit 10.4 Documentation Build 39.