Command line examples, Compiling, Assembling – Zilog Z80380 User Manual
Page 42: Linking

INTERRUPT FUNCTIONS
C-Compiler Overview
2–8
UM004001-COR1103
N
OTE
:
Other switches are for ZiLOG use only in this version.
C
OMMAND
L
INE
E
XAMPLES
Compiling
The command for Z380:
Z380 test.c generates test.s. By default the -04 options is used.
Assembling
The command for 380:
zma -pz380 -j -otest.o test.s generates test.o
Linking
The command for 380:
zld -mtest -otest
(compiler installation path)\z380inits.o test.o gener-
ates test.ld and test.map.
-Wf
Enable warnings about function return values
-Wh
Enable some heuristic warnings
-Wp
Enable portability warnings, and warnings about handling enumeration
types
-Wstrict
Enable strict warnings
-Wv
Enable warnings about unused parameters (not included in –Wd)
-Wx
Enable warnings about unused global objects
-ZiLOG
Allow // style comments
-Zp2
Pack data on word (2 byte) boundary. By default, 32-bit objects are
aligned on 32-bit (4 byte) boundaries. This option aligns 16-bit and 32-bit
objects on 16-bit (2 byte) boundaries.
T
ABLE
2-2. C
OMMAND
LINE
SWITCHES
Switch Function