beautypg.com

Code generator warning and error messages – Zilog EZ80F916 User Manual

Page 201

background image

UM014423-0607

Using the ANSI C-Compiler

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

181

255 Missing declaration of (s)printf helper function, variable, or field

This warning is generated when the compiler has not seen the prototypes for the

printf

or

sprintf

helper functions it generates calls to. This occurs if the standard

include file

stdio.h

has not been included or if

stdio.h

from a different release of

ZDS II has been included.

256 Can't preprocess calls to vprintf or vsprintf

This message is generated when the code contains calls to

vprintf

or

vsprintf

and

the inline generation of

printf

calls is requested. The reason for this warning and the

solutions are similar to the ones for message 201: Can’t preprocess format to (s)printf.

Code Generator Warning and Error Messages

303 Case value <number> already defined.

If a case value consists of an expression containing a

sizeof

, its value is not known

until code generation time. Thus, it is possible to have two cases with the same value
not caught by the front end. Review the

switch

statement closely.

308 Excessive Registers required at line <num> of function <func>.

Excessive Page 0 registers are required at line number <num>. The compiler does not
perform register page spilling, so complex expressions that generate this error must be
factored into two or more expressions.

309 Interrupt function <name> cannot have arguments.

A function declared as an interrupt function cannot have function arguments.

313 Bitfield Length exceeds <num> bits.

The compiler only accepts bit-field lengths of 8 bits or less for char bit-fields, 16 bits
or less for short bit-fields, and 32 bits or less for int and long bit-fields.

This manual is related to the following products: