Chapter 2 c-compiler overview, Overview, 2c-c – Zilog Z80380 User Manual
Page 35

UM004001-COR1103
2–1
380 C-C
OMPILER
U
SER
’
S
M
ANUAL
C
HAPTER
2
C-C
OMPILER
O
VERVIEW
OVERVIEW
The 380 C compiler is an optimizing compiler that translates standard ANSI C programs into
ZiLOG assembly language source code. Key characteristics of the compiler are:
•
Supports ANSI C language
- ZiLOG’s C-Compiler conforms to the ANSI C standard
as defined by ANSI specifications a for free standing implementation.
•
Assembly output
- The compiler generates assembly language source files that can be
viewed and modified.
•
Provides ANSI-standard run-time libraries
- A run-time library for each device is
included with the compiler’s tools. All library functions conform to the ANSI C library
standard. These libraries include functions for string manipulation, buffer manipulation,
data conversion, math, variable length argument lists.
•
COFF object files
- Common object file format (COFF) is used. This format allows the
user to define the system’s memory map at link time. This maximizes performance by
linking C code and data objects into specific memory areas. Source-level debugging is
also supported by the COFF file format.
•
Friendly assembly interface
- The compilers calling conventions are easy to use and
flexible. These calling conventions allow the user to easily call assembly and C
functions.
•
Preprocessor integration
- The compiler front end has a built in preprocessor for faster
compilation.
•
Optimization levels
- The compiler allows the user to select optimization levels that
employ advanced techniques for compacting and streamlining C code.
•
Language extensions
- Language extensions are provided to support processor specific
features.
– Memory and I/O address spaces are supported through memory qualifiers