28.2.22 __builtin_edspage
Description
Returns the eds page number of the object whose address is given as a parameter. The
argument p must be the address of an object in an Extended Data Space (EDS); otherwise
an error message is produced and the compilation fails. See the space
attribute in Variable Attributes.
Prototype
unsigned int __builtin_edspage(const void *p);
Argument
p
– object address
Return Value
Returns the eds page number of the object whose address is given as a parameter.
Assembler Operator/ Machine Instruction
edspage
Error Messages
The following error message is produced when this function is used incorrectly: “Argument
to __builtin_edspage()
is not the address of an object in extended data
space.”
The argument must be an explicit object address.
For example, if obj
is object in an executable or read-only
section, the following syntax is valid:
unsigned page = __builtin_edspage(&obj);