beautypg.com

Additional keywords for storage specification – Zilog Z8F0130 User Manual

Page 219

background image

UM013037-1212

Additional Keywords for Storage Specification

Zilog Developer Studio II – Z8 Encore!

User Manual

195

Monitor Function Support

– see page 203

The C-Compiler provides a special function type to be used in monitor applications to
support efforts to create a real-time operating system kernel for Z8 Encore!.

String Placement

– see page 204

Because the Z8 Encore! CPU has multiple address spaces, the C-Compiler provides
language extensions to specify the storage for string constants.

Inline Assembly

– see page 205

The C-Compiler provides directives for embedding assembly instructions and direc-
tives into the C program.

Placement Directives

– see page 206

The placement directives allow users to place objects at specific hardware addresses
and align objects at a given alignment.

Char and Short Enumerations

– see page 207

The enumeration data type is defined as

int

as per ANSI C. The C-Compiler provides

language extensions to specify the enumeration data type to be other than

int

.

Setting Flash Option Bytes in C

– see page 208

The Z8 Encore! CPU has two Flash option bytes. The C-Compiler provides language
extensions to define these Flash option bytes.

Program RAM Support (Z8 Encore! XP 16K Series Only)

– see page 208

The Z8 Encore! XP 16K Series devices have additional RAM that can be used as Pro-
gram RAM (PRAM) optionally. The Z8 Encore! C-Compiler provides syntax to place
code for a function in PRAM.

Preprocessor #warning Directive Support

– see page 210

The C-Compiler supports

#warning

directives in addition to

#error

directives for

diagnostic message generation.

Supported New Features from the 1999 Standard

– see page 210

The Z8 Encore! C-Compiler is based on the 1989 ANSI C standard. Some new fea-
tures from the 1999 standard are supported in this compiler for ease of use.

Additional Keywords for Storage Specification

The

near

,

far

, and

rom

keywords are storage class specifiers and are used to control the

allocation of data objects by the compiler. They can be used on individual data objects
similar to the

const

and

volatile

keywords in the ANSI C standard. The storage speci-

fiers can only be used to control the allocation of global and static data. The allocation of
local data (nonstatic local) and function parameters is decided by the compiler and is