SIZEOF section size
In this section:
Syntax
SIZEOFsection
Precedence
1
Parameters
| The name of a relocatable section, which must be defined before |
Description
SIZEOF generates SFE-SFB for its argument. That is, it calculates the size in bytes of a section. This is done when modules are linked together.
Example
These two files set size to the size of the section MYCODE.
Table.s:
module table
section MYCODE:CODE ; Forward declaration of MYCODE.
section SEGTAB:CONST(2)
data
size dc32 sizeof(MYCODE)
endApplication.s:
module application
section MYCODE:CODE(2)
code
nop ; Placeholder for application.
end