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

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
Linker
The linker allows allows multiple files to be compiled into multiple objects (.o files) and finally linked
together to form a final .hex file. The linker can be used from inside the PCW IDE, through the
MPLAB IDE and from the command line.
CCS provides an example that demonstrates the use of the linker in the mcu.zip files present in the
Examples folder. The files in this project are as follows:
main.c
filter.c
report.c
project.h
filter.h
report.h
buildall.bat
build.bat
project.pjt
See MCU Documentation.pdf for detailed information on these files.
Each unit will produce a .o (relocatable object) file, which gets linked together to form the final load
image (project.hex)
Building the project from the command line:
1. Move the project files into a directory.
2. Edit the Buildall.bat file and make sure the path to CCSC.EXE is correct.
3. From a DOS prompt set the default directory to the project directory.
4. Enter: BUILDALL
"c:\program files\picc\ccsc" +FM +EXPORT report.c
"c:\program files\picc\ccsc" +FM +EXPORT filter.c
"c:\program files\picc\ccsc" +FM +EXPORT main.c
"c:\program files\picc\ccsc" +FM LINK="project.hex=report.o,filter.o,main.o"
Automatically building by recompiling needed files:
1. The required lines in the project.pjt file are:
2. From a DOS prompt set the default directory to the project directory.
3. Enter: BUILD
Note that after a project is linked if no .pjt file exists the linker will create one that may be used with
the BUILD= option in the future.
"c:\program files\picc\ccsc" +FM BUILD=project.pjt
70
Primary file for the first compilation unit
Primary file for the second compilation
Primary file for the third compilation unit
Include file with project wide definitions
External definitions for filter, should be
External definitions for report, should be
Batch file that compiles and links all units
Batch file that recompiles files needing
Used by build.bat to list project units
[Units]
Count=3
1=filter.o
2=report.o
3=main.o
Link=1

Related parts for PCDIDE COMPILER