04.06.2013 Views

cpik C compiler for PIC c -18 devices Version 0.6.0 - PiKdev, An IDE ...

cpik C compiler for PIC c -18 devices Version 0.6.0 - PiKdev, An IDE ...

cpik C compiler for PIC c -18 devices Version 0.6.0 - PiKdev, An IDE ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

12 Source library structure<br />

A source library is an assembly language source file, with special comments interpreted by <strong>cpik</strong><br />

linker. Each special comment begins with ";". <strong>An</strong>y<br />

in<strong>for</strong>mation inserted after the final ">" are really comments and will be ignored by the linker.<br />

Source libraries are structured in modules, each module can contains either data or code.<br />

Here is the list of recognized special comments:<br />

1. Begin of module definition : the specified module follows the comment.<br />

;<br />

The module name can be optionally followed by the specification of a program section, with<br />

the following syntax:<br />

;<br />

The <strong>cpik</strong> linker supports 4 types of program sections :<br />

(a) CDATA<br />

This segment is dedicated to const data. Such data will be located at begin of ROM<br />

and will not copied to RAM<br />

(b) IDATA<br />

This segment is dedicated to initialized data. The module must contain the ≪;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!