Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER->Compiler Support Files->Headers and Library Files

A number of support files are supplied with the C compiler.  These contain either header information or library code.  The following files are provided:


Header files
    
stdio.h stdlib.h string.h malloc.h ctype.h stdarg.h stddef.h limits.h conio.h math.h sfr.h os.h errno.h


Library files
    
xlib51.libstandard library for large memory model reentrant code
xlib51n.standard library for large memory model non-reentrant code
xflib51.libfloating point library for large memory model reentrant code
xflib51n.libfloating point library for large memory model non-reentrant code
slib51.libstandard library for small memory model reentrant code
slib51n.libstandard library for small memory model non-reentrant code
sflib51.libfloating point library for small memory model reentrant code
sflib51n.libfloating point library for small memory model non-reentrant code
tlib51.libstandard library for tiny memory model reentrant code
tlib51n.libstandard library for tiny memory model non-reentrant code
tflib51.libfloating point library for tiny memory model reentrant code
tflib51n.libfloating point library for tiny memory model non-reentrant code
Header files included by the format

#include "stdio.h"

can be located either in the current directory or in the directory specified by the INCLUDE environment variable.

Header files included by the format

#include <stdio.h>

can only be located in the directory specified by the INCLUDE environment variable.

If you are running the compiler from within the Embedded Development Studio, the INCLUDE environment variable is automatically set to point to the standard include directory whenever you run the compiler.

A detailed description of the library routines are presented in the C Compiler Library Function Reference section.

The standard libraries contain target specific versions of getch() and putch() and these and the startup code may need to be modified to suit your target system.