To explicitly specify the size attribute of a symbol, use the .size directive. The .size directive has the following format:
.size name,size
Where:
name |
Represents a symbol name. |
size |
Represents an absolute integer expression with no forward references. |
To implicitly specify the default size attribute of a symbol, use a data allocation statement. The default symbol size is written to the symbol table. See the Data Allocation Statements section for more information.
When the object file format is COFF32 (Windows NT), the .size directive is only effective for common symbols.