From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-09-04 18:13:44
Hi!
On Thu, Sep 04, 2003 at 05:48:58PM +0200, Groepaz wrote:
> i have another question....is it possible to have register variables
> threatened as global (maybe only with --static-locals) ?
What does that mean? A global variable in a zero page register? No that is
currently not possible and it would also be difficult to implement, at least
when using the standard register space in the zero page. Assume a function
like:
register unsigned g;
void f (void)
{
register unsigned foo, bar, faz;
....
}
Since the function uses the complete register bank (6 bytes), the variable g
would be shadowed by the local variables, as a result an access is no longer
possible (the old value of g was saved on the stack).
Regards
Uz
--
Ullrich von Bassewitz uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-09-04 18:13:57 CEST