Command Scoping - 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 Structure

Command Scoping

The two LDF scopes are global and command. A global scope occurs outside
commands. Commands and expressions that appear in the global scope are
always available and are visible in all subsequent scopes. LDF macros are
available globally, regardless of the scope in which the macro is defined
(see
"LDF Macros" on page
A command scope applies to all commands that appear between the braces
(
) of another command, such as a
{ }
Commands and expressions that appear in the command scopes are lim-
ited to those scopes.
Figure 3-1
illustrates some scoping issues. For example, the
command that appears in the LDF's global scope is available in all com-
mand scopes, but the
is restricted to those scopes.
Scope of
Global
LDF
Scope
Figure 3-1. LDF Command Scoping Example
3-12
3-20).
command that appear in command scopes
MEMORY{}
SHARED_MEMORY{}
Scope of
PROCESSOR P0{}
VisualDSP++ 3.5 Linker and Utilities Manual
or
PROCESSOR{}
PLIT{}
MEMORY{}
MPMEMORY{}
SHARED_MEMORY
{
OUTPUT()
SECTIONS{}
}
PROCESSOR P0
{
OUTPUT()
MEMORY{}
SECTIONS{}
RESOLVE{}
}
for 16-Bit Processors
command.
MEMORY{}

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

Related Products for Analog Devices VisualDSP++ 3.5

Table of Contents