beautypg.com

Zilog Z8F0130 User Manual

Page 509

background image

UM013037-1212

Compiler Command Line Options

Zilog Developer Studio II – Z8 Encore!

User Manual

485

-bfpack:[tight |

normal |

compatible]

Selects the bit-field packing algorithm. The tight setting produces the most
compact packing, which is the default. The normal setting allocates space in the
structure that corresponds exactly to the declared type of each bit-field. The
compatible

setting produces a packing that is compatible with the less efficient

algorithm that was used before ZDS II release 4.11.0. If you have an older project
that uses both C and assembly code to access bit-fields, you probably need to use
-bfpack:compatible

.

-const:[ram|rom]

Selects where const variables are placed. The default is to place const variables in
ram. This is a depreciated option; use the rom keyword instead of const to place
const data in rom.

-cpu:

cpu

Sets the CPU.

-debug

Generates debug information for the symbolic debugger. This is the default.

-define:

def

Defines a symbol and sets it to the constant value. For example:
-define:myvar=0
The alternate syntax, -define:myvar, is the same as -define:myvar=1.

-fastcall

Pass parameters in registers.

-fplib

Links with the floating-point emulation library.

-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.

-jmpopt

Turns on application of branch optimizations.

-keepasm

Keeps the compiler-generated assembly file.

-keeplst

Keeps the assembly listing file (.lst).

-list

Generates a .lis source listing file.

-listinc

Displays included files in the compiler listing file.

-model:

model

Selects the memory model. Select S for the small memory model or L for the large
memory model. The default is L.

-noasm

Does not assemble the compiler-generated assembly file.

-nodebug

Does not generate symbol debug information.

-nofastcall

Pass parameters in memory.

-nofplib

Does not link with floating-point emulation library.

-nogenprint

A call to printf() or sprintf() parses the format string at run time to
generate the required output.

-nojmpopt

Turns off application of branch optimizations.

-nokeepasm

Deletes the compiler-generated assembly file. This is the default.

-nokeeplst

Does not keep the assembly listing file (.lst). This is the default.

Table 58. Compiler Command Line Options (Continued)

Option Name

Description