28.2.4 __builtin_addr_low, __builtin_addr_high, __builtin_addr

Description

Determine the offset address of a symbol.

Prototype

unsigned int __builtin_addr_low(&symbol);
unsigned int __builtin_addr_high(&symbol);
unsigned int __builtin_addr(&symbol);

Argument

&symbol – The literal address of the symbol

Return Value

Returns the low, high or full address of a symbol, without any adjustment for physical address paging requirements. Therefore, the values returned represent a literal offset and cannot be used for addressing purposes without manipulation.

Assembler Operator/ Machine Instruction

addr_low, addr_high, addr

Error Messages

An error message will be displayed if the argument is not a literal address.