beautypg.com

Running the linker from the command line – Zilog Z8F0130 User Manual

Page 505

background image

UM013037-1212

Running the Linker from the Command Line

Zilog Developer Studio II – Z8 Encore!

User Manual

481

2. To set up the ZDS II bin directory (for example,

C:\PRO-

GRA~1\Zilog\ZDSII_Z8Encore!_4.11.0\bin

) in the path, enter the following

code:

SET PATH=%PATH%;C:\Program

Files\Zilog\ZDSII_Z8Encore!_4.11.0\bin

The make utility is available in this directory.

3. Type

PATH

again to see the new path.

4. Open the make file in a text editor.

5. Copy the options in the CFLAGS section.

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

ez8cc -cpu:Z8F6423 -define _Z8F6423 -asmsw:"-cpu:Z8F6423" 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}'

Running the Linker from the Command Line

To run the linker from the command line:

1. To see the current path, enter the following command in a DOS window:

PATH

2. To set up the ZDS II bin directory (for example,

C:\PRO-

GRA~1\Zilog\ZDSII_Z8Encore!_4.11.0\bin

) in the path, enter the following

code:

Note: