LDF Operators
LDF Operators
LDF operators in expressions support memory address operations. Expres-
sions that contain these operators terminate with a semicolon, except
when the operator serves as a variable for an address. The linker responds
to several LDF operators including the location counter.
Each LDF operator is described next.
ABSOLUTE() Operator
Syntax:
ABSOLUTE(expression)
The linker returns the value
absolute address to a symbol. The
• A symbolic expression in parentheses; for example:
ldf_start_expr = ABSOLUTE(start + 8);
This example assigns
the address of the symbol
Ldf_start_expr = start + 8;
• A integer constant in one of these forms: hexadecimal, decimal, or
decimal optionally followed by "K" (kilo [
[
x1024x1024
• A period, indicating the current location (see
(.)" on page
The following statement, which defines the bottom of stack space
in the LDF
ldf_stack_space = .;
3-16
expression
expression
ldf_start_expr
start
]).
3-19).
VisualDSP++ 3.5 Linker and Utilities Manual
. Use this operator to assign an
can be:
the value corresponding to
, plus 8, as in:
]) or "M" (Mega
x1024
"Location Counter
for 16-Bit Processors
Need help?
Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?