Download VisualDSP++ 3.5 Assembler and Preprocessor

Transcript
Preprocessor
#include
The #include command directs the preprocessor to insert the text from a
header file at the command location. There are two types of header files:
system and user. However, the #include command may be presented in
three forms:
•
#include <filename>
— used with system headers
•
#include “filename”
— used with user headers
•
#include text
— used with a sequence of tokens.
That sequence will be subject to macro expansion by the preprocessor. After macro expansion, the text must match one of the header
file forms.
The only difference to the preprocessor between the two types of header
files is the way the preprocessor searches for them.
• System Header <fileName> — The preprocessor searches for a system header file in the order: (1) the directories you specify and (2)
the standard list of system directories.
• User Header “fileName” — The preprocessor searches for a user
header file in this order:
1. Current directory—the directory where the source file that
has the #include command(s) lives
2. Directories you specify
3. Standard list of system directories
to “Header Files and #include Command” on page 2-4 for
Refer
more information.
VisualDSP++ 3.5 Assembler and Preprocessor Manual
for ADSP-218x and ADSP-219x DSPs
2-23