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

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
Multiple Compilation Units
Traditionally, the CCS C compiler used only one compilation unit and multiple files were
implemented with #include files. When using multiple compilation units, care must be given that
pre-processor commands that control the compilation are compatible across all units. It is
recommended that directives such as #FUSES, #USE and the device header file all put in an
include file included by all units. When a unit is compiled it will output a relocatable object file (*.o)
and symbol file (*.osym).
The following is an overview of a multiple compilation unit example. For the example used here,
see the MCU.zip in the examples directory.
Files Included in Project Example:
main.c
filter.c
report.c
project.h
filter.h
report.h
project.c
project.pjt
build.bat
buildall.bat
linker.bat
File Overview:
main
#include:
Definitions:
Uses:
20
project.h
filter.h
report.h
main() program
clear_data()
filter_data()
report_data_line()
report_line_number
Primary file for the first compilation unit.
Primary file for the second compilation unit.
Primary file for the third compilation unit.
Include file with project wide definitions that should be included by all units.
Include file with external definitions for filter that should be included by all units that
use the filter unit.
Include file with external definitions for report that should be included by all units
that use the report unit.
Import file used to list the units in the project for the linker.bat file.
Project file used to list the units in the project for the build.bat file.
Batch file that re-compiles files that need compiling and linking.
Batch file that compiles and links all units.
Batch file that compiles and links all units using a script.
filter
#include:
Public Definitions:
Uses:
project.h
report.h
clear_data()
filter_data()
report_error()
report
#include:
Public Definitions:
project.h
report_data_line()
report_line_number
report_error()

Related parts for PCDIDE COMPILER