24.10.2014 Views

Download - Tasking

Download - Tasking

Download - Tasking

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.

2−30<br />

PCP User’s Manual<br />

2.12 LIBRARIES<br />

The compiler cpcp comes with standard C libraries (ISO/IEC 9899:1999)<br />

and header files with the appropriate prototypes for the library functions.<br />

The standard C libraries are available in object format and in C or<br />

assembly source code.<br />

A number of standard operations within C are too complex to generate<br />

inline code for. These operations are implemented as run−time library<br />

functions.<br />

The directory structure is:<br />

\pcp\lib\<br />

pcp1\<br />

pcp15<br />

pcp2\<br />

PCP1 libraries<br />

PCP1.5 libraries<br />

PCP2 libraries<br />

2.12.1 OVERVIEW OF LIBRARIES<br />

Table 2−7 lists the libraries included in the PCP toolchain.<br />

C LANGUAGE<br />

Library to link<br />

libc.a<br />

libfp.a<br />

libfpt.a<br />

Table 2−7: Overview of libraries<br />

Description<br />

C library<br />

(Some functions require the floating−point library. Also<br />

includes the startup code.)<br />

Floating−point library (non−trapping)<br />

Floating−point library (trapping)<br />

(Control program option −−fp−trap)<br />

See section 2.2, Library Functions, in Chapter Libraries of the Reference<br />

Manual for an extensive description of all standard C library functions.

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

Saved successfully!

Ooh no, something went wrong!