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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
#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 PCWHD IDE COMPILER