C– – Compiler
5-43
Code Development Tools
5.9.4.3
#include
As in regular C, this directive allows for the insertion of a file into the current
file. If the file name that follows is enclosed in < >, the system searches the
include directories for the file, otherwise, if it is enclosed in “ ”, the current
directory is searched.
Example:
#include “file.h”
#include <stdio.h>
The include directories are defined on the
cmm_input
structure passed to the
compiler. There is no limit to the nesting of include files.
5.9.4.4
#asm
All text following this directive is inserted
as is in the output file, and is
considered as assembly language (hence not compiled). The insertion
continues until a #endasm directive is found. Note that both #asm and
#endasm must be at the beginning of a line, and that all text following them
on the same line is ignored.
5.9.4.5
#endasm
Signals the end of assembly language insertion. Must be paired with a #asm
directive.
5.9.4.6
#ifdef, (#ifndef)
Starts conditional assembly if token following it has been defined (not been
defined) by a #define directive. These directives are terminated by a #endif
directive, and can be coupled with a #else directive, as in regular C. Note that
the test can only check if the named token is currently defined or undefined.
5.9.4.7
#if
Starts conditional assembly if expression following it evaluates to a non zero
value. This directive is terminated by a #endif directive, and can be coupled
with a #else directive, as in regular C.
5.9.4.8
#else
See
#if directive.
5.9.4.9
#endif
Must be present to terminate a #ifdef or #ifndef directive
Summary of Contents for MSP50C614
Page 1: ...MSP50C614 Mixed Signal Processor User s Guide SPSU014 January 2000 Printed on Recycled Paper ...
Page 6: ...vi ...
Page 92: ...3 22 ...
Page 300: ...Instruction Set Summay 4 208 Assembly Language Instructions ...
Page 314: ...Software Emulator 5 14 Figure 5 13 Project Menu Figure 5 14 Project Open Dialog ...
Page 325: ...Software Emulator 5 25 Code Development Tools Figure 5 25 EPROM Programming Dialog ...
Page 331: ...Software Emulator 5 31 Code Development Tools Figure 5 31 Context Sensitive Help System ...
Page 368: ...5 68 ...
Page 394: ...7 12 ...
Page 402: ...A 8 ...
Page 412: ...Packaging B 10 ...