beautypg.com

Running the compiler from the command line – Zilog ZUSBOPTS User Manual

Page 378

background image

Running the Compiler from the Command Line

UM017105-0511

350

Zilog Developer Studio II – ZNEO™
User Manual

make rebuildall -f sampleproject_Debug.mak

Running the Compiler from the Command Line

To run the compiler from the command line:

1. Open the make file in a text editor.

2. Copy the options in the CFLAGS section.

3. In a Command Prompt window, enter the path to the compiler, the options from the

CFLAGS section (on a single line and without backslashes), and your C file. For
example:

C:\PROGRA~1\Zilog\ZDSII_ZNEO_4.11.0\bin\eZ8cc -alias -asm -

const:RAM

-debug -define:_z8f64 -NOexpmac -NOfplib -intsrc -intrinsic -

NOkeepasm

-NOkeeplst -NOlist -NOlistinc -maxerrs:50 -NOmodsect -promote -

quiet -NOstrict -NOwatch -optsize -localopt -localcse -localfold -

localcopy -peephole

-globalopt -NOglobalcse -NOglobalfold -NOglobalcopy -NOloopopt -

NOsdiopt

-NOjmpopt -

stdinc:"..\include;C:\PROGRA~1\Zilog\ZDSII_ZNEO_4.11.0\include" -

usrinc:"..\include" -cpu:z8f64 -bitfieldsize:24 -charsize:8 -

doublesize:32

-floatsize:32 -intsize:24 -longsize:32 -shortsize:16 -asmsw:"-

cpu:z8f64" test.c

If you use DOS, use double quotation marks for the

-stdinc

and

-usrinc

commands

for the C-Compiler.


For example,

-stdinc:"C:\ez8\include"


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:\ez8\include}'

Notes:

This manual is related to the following products: