beautypg.com

Run-time library – Zilog Z8F0130 User Manual

Page 249

background image

UM013037-1212

Run-Time Library

Zilog Developer Studio II – Z8 Encore!

User Manual

225

Run-Time Library

The C-Compiler provides a collection of run-time libraries. The largest section of these
libraries consists of an implementation of much of the C Standard Library. A small library
of functions specific to Zilog or to Z8 Encore! is also provided.

You can run the

buildrtl.bat

batch file to generate the libraries from the RTL source

(that might have been modified by you) directly into the following directory:

ZILOGINSTALL\ZDSII_product_version\lib\std

In the above filepath:

ZILOGINSTALL is the ZDS II installation directory. For example, the default installa-
tion directory is

C:\Program Files\Zilog

version is the ZDS II version number. For example, version can be

4.11.0

or

5.0.0

The Z8 Encore! C-Compiler is a conforming freestanding 1989 ANSI C implementation
with some exceptions. In accordance with the definition of a freestanding implementation,
the compiler supports the required standard header files <

float.h

>, <

limits.h

>,

<

stdarg.h

>, and <

stddef.h

>. It also supports additional standard header files and

Zilog-specific nonstandard header files.

The standard header files and functions are, with minor exceptions, fully compliant with
the ANSI C Standard. They are described in detail in

Appendix B. C Standard Library

on

page 415. The deviations from the ANSI Standard in these files are summarized in the

Library Files Not Required for Freestanding Implementation

section on page 258.

The ZDS II for Z8 Encore! microcontrollers comes with additional Zilog-specific func-
tions to program the Z8 Encore! peripherals. These additional functions together form the
Zilog Standard Library (ZSL) and are described in the Z8 Encore! Using Zilog Standard
Library (ZSL) White Paper
(WP0010).

The following sections describe the use and format of the nonstandard, Zilog-specific run-
time libraries:

Zilog Header Files

– see page 226

Zilog Functions

– see page 228

The Zilog-specific header files provided with the compiler are listed in the following table
and described in the

Zilog Header Files

section on page 226.