beautypg.com

Compiler command line options – Zilog EZ80F916 User Manual

Page 403

background image

UM014423-0607

Running ZDS II from the Command Line

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

383

COMPILER COMMAND LINE OPTIONS

The following table describes the compiler command line options.

NOTE: If you use DOS, use double quotation marks for the

-stdinc

and

-usrinc

commands for the C compiler. For example:

-stdinc:"C:\eZ80include"

If you use cygwin, use single quotation marks on both sides of a pair of braces for the

-stdinc

and

-usrinc

commands for the C compiler. For example:

-stdinc:'{C:\eZ80\include}'

Table 14. Compiler Command Line Options

Option Name

Description

-asm

Assembles compiler-generated assembly file. This switch results in the generation of an
object module. The assembly file is deleted if no assemble errors are detected and the

keepasm

switch is not given. The default is

asm

.

-asmsw:"

sw

"

Passes sw to the assembler when assembling the compiler-generated assembly file.

-cpu:

cpu

Sets the CPU. For example:

-cpu:EZ80F91

-debug

Generates debug information for the symbolic debugger.

-define:

def

Defines a symbol and sets it to the constant value. For example:

-define:DEBUG=0

This option is equivalent to the C #define statement. The alternate syntax,

-define:

myvar, is the same as

-define:

myvar

=1

.

-genprintf

The format string is parsed at compile time, and direct inline calls to the lower level helper
functions are generated. The default is

genprintf

.

-help

Displays the compiler help screen.

-keepasm

Keeps the compiler-generated assembly file. The default is

nokeepasm

.

-keeplst

Keeps the assembly listing file (

.lst

). The default is

nokeeplst

.

-list

Generates a

.lis

source listing file. The default is

nolist

.

-listinc

Displays included files in the compiler listing file.

-model:

model

This option has no effect on the eZ80Acclaim! compiler.

-modsect

Generate distinct code segment name for each module.

-noasm

Does not assemble the compiler-generated assembly file. This default is

asm

.

-nodebug

Does not generate symbol debug information.

-nogenprint

A call to

printf()

or

sprintf()

parses the format string at run time to generate the

required output. The default is

genprintf

.

This manual is related to the following products: