C– – Compiler
5-19
Code Development Tools
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.5.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.5.4.5
#endasm
Signals the end of assembly language insertion. Must be paired with a #asm
directive.
5.5.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.5.4.7
#if
Starts conditional assembly if the 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.5.4.8
#else
See #if directive.
5.5.4.9
#endif
Must be present to terminate a #ifdef or #ifndef directive
Note:
Typedef is not supported in C– –.
5.5.5
Include Files
There are currently two include files supplied with C– –,
cmm_func.h
, which
contains function prototypes for the C– –functions and
cmm_macr.h
which
contains some predefined macros. Both files are listed below:
Содержание MSP50C6xx
Страница 1: ...MSP50C6xx Mixed Signal Processor User s Guide Mixed Signal Products SPSU014A Printed on Recycled Paper...
Страница 6: ...vi...
Страница 14: ...xiv...
Страница 24: ...1 10...
Страница 296: ...Instruction Set Summay 4 210 Assembly Language Instructions...
Страница 332: ...Implementation Details 5 36 R7 Return Addr Return Addr Param 2 Param 2 Param 1 Param 1 R5 Stack data Function call...
Страница 366: ...6 12...