can also be written as:
ldf_stack_space = ABSOLUTE(.);
• A symbol name
ADDR() Operator
Syntax:
ADDR(section_name)
This operator returns the start address of the named output section
defined in the LDF. Use this operator to assign a section's absolute address
to a symbol.
Example
If an .
file defines output sections as,
LDF
dxe_L2_code
{
INPUT_SECTIONS( $OBJECTS(program) $LIBRARIES(program))
}> mem_L2
dxe_L2_data
{
INPUT_SECTIONS( $OBJECTS(data1) $LIBRARIES(data1))
}> mem_L2
the
file may contain the command:
.LDF
ldf_start_L2 = ADDR(dxe_L2_code)
The linker generates the constant
address of the
VisualDSP++ 3.5 Linker and Utilities Manual
for 16-Bit Processors
output section.
dxe_L2
Linker Description File
and assigns it the start
ldf_start_L2
3-17
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?
Questions and answers