Ldf Macros - 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 Macros

LDF Macros
LDF macros (or linker macros) are built-in macros. They have predefined
system-specific procedures or values. Other macros, called user macros, are
user-definable.
LDF macros are identified by a leading dollar sign (
LDF macro is a name for a text string. You may assign LDF macros with
textual or procedural values, or simply declare them to exist.
The linker:
• Substitutes the string value for the name. Normally, the string
value is longer than the name, so the macro expands to its textual
length.
• Performs actions conditional on the existence of (or value of) the
macro
• Assigns a value to the macro, possibly as the result of a procedure,
and uses that value in further processing
LDF macros funnel input from the linker command line into predefined
macros and provide support for user-defined macro substitutions. Linker
macros are available globally in the .
defined. For more information, see
and
"LDF Macros and Command-Line Interaction" on page
L
LDF macros are independent of preprocessor macro support,
which is also available in the .
processor macros (or other preprocessor commands) into source
files. Preprocessor macros repeat instruction sequences in your
source code or define symbolic constants. These macros facilitate
text replacement, file inclusion, and conditional assembly and
compilation. For example, the assembler's preprocessor uses the
#define
3-20
command to define macros and symbolic constants.
VisualDSP++ 3.5 Linker and Utilities Manual
) character. Each
$
file, regardless of where they are
LDF
"Command Scoping" on page 3-12
file. The preprocessor places pre-
LDF
for 16-Bit Processors
3-22.

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?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Analog Devices VisualDSP++ 3.5

Table of Contents