PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 140

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
#MODULE
Syntax:
Elements:
Purpose:
Examples:
Example Files:
See Also:
#NOLIST
Syntax:
Elements:
Purpose:
Examples:
Example Files:
Also See:
126
#MODULE
None
All global symbols created from the #MODULE to the end of the file will only be
visible within that same block of code (and files #INCLUDE within that block).
This may be used to limit the scope of global variables and functions within
include files. This directive also applies to pre-processor #defines.
Note: The extern and static data qualifiers can also be used to denote scope of
variables and functions as in the standard C methodology. #MODULE does add
some benefits in that pre-processor #DEFINE can be given scope, which cannot
normally be done in standard C methodology.
int GetCount(void);
void SetCount(int newCount);
#MODULE
int g_count;
#define G_COUNT_MAX
int GetCount(void) {return(g_count);}
void SetCount(int newCount) {
}
/*
the functions GetCount() and SetCount() have global scope, but
the variable g_count and the #define G_COUNT_MAX only has scope
to this file.
*/
None
#EXPORT,
#NOLIST
None
Stops inserting source lines into the .LST file (until a #LIST)
#NOLIST
#include <cdriver.h>
#LIST
16c74.h
#LIST
if (newCount>G_COUNT_MAX)
g_count=newCount;
newCount=G_COUNT_MAX;
Invoking the Command Line
// Don't clutter up the list file
100
Compiler,
Linker Overview

Related parts for PCDIDE COMPILER