Included files, Predefined names, Generated assembly file – Zilog Z80380 User Manual

Page 46: Object sizes

Advertising
background image

Included Files

C-Compiler Overview

2–12

UM004001-COR1103

INCLUDED FILES

A path to included files must be defined before the C-Compiler can recognize included files.
An included files path is set in the Preprocessor page in the C-Compiler setting options dia-
log box. For more information on the Preprocessor page, see Defining Preprocessor Symbols
on page 1-17
. For command line version -I command line option can be used to specify the
include path.

PREDEFINED NAMES

The Z380 C-compiler comes with four predefined macro names. These names are:

_LINE_

Expands to the current line number

_FILE_

Expands to the current source filename

_DATE_

Expands to the compilation date in the form of mm dd yy

_TIME_

Expands to the compilation time in the form of hh:mm:ss

N

OTE

:

For more information on using the command line see page 2-6.

GENERATED ASSEMBLY FILE

After compiling a c-file an assembly file is generated and placed in the project directory. The
assembly files are downloaded and linked and a COFF file is produced that is downloaded to
the emulator. The user can modify the assembly in the ZDS Editor window.

To open and edit the assembly file:

1. Select Open File from the ZDS Edit menu. The Open file dialog box appears.

2. Select Assembler Files from the files of type pull down menu.

3. Browse to the project directory and double click on the file you want to open. The selected

file appears in the ZDS edit window.

OBJECT SIZES

The following table lists basic objects and their size.

Type

Size

char

8 bits

short

16 bits

int

32 bits

long

32 bits

Advertising