Defined() Operator; Memory_Sizeof() Operator - Analog Devices VisualDSP++ 3.5 Manual

Linker and utilities manual for 16-bit processors
Hide thumbs Also See for VisualDSP++ 3.5:
Table of Contents

Advertisement

LDF Operators

DEFINED() Operator

Syntax:
DEFINED(symbol)
The linker returns a
and returns
when the symbol is not defined. Use this operator to assign
0
default values to symbols.
Example
If an assembly object linked by the
, the following statement sets the
test
wise, the constant has the value
test_present = DEFINED(test);

MEMORY_SIZEOF() Operator

Syntax:
MEMORY_SIZEOF(segment_name)
This operator returns the size (in words) of the named memory segment.
Use this operator when a segment's size is required in order to move the
current location counter to an appropriate location.
Example
This example (from a default
based on the location counter plus the
sec_stack {
ldf_stack_limit = .;
ldf_stack_base = . + MEMORY_SIZEOF(mem_stack) - 1;
} > mem_stack
The
sec_stack
memory segment.
3-18
when the symbol appears in the global symbol table,
1
.
0
.LDF
section is defined to consume the entire
VisualDSP++ 3.5 Linker and Utilities Manual
file defines the global symbol
.LDF
constant to
test_present
file) sets a linker-generated constant
MEMORY_SIZEOF
. Other-
1
operator.
mem_stack
for 16-Bit Processors

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 3.5 and is the answer not in the manual?

Related Products for Analog Devices VisualDSP++ 3.5

Table of Contents