Re: [cc65] const/volatile

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-01-27 20:24:35


Hi!

On Mon, Jan 20, 2003 at 09:24:03AM -0500, shubel, paul wrote:
> Sorry for being numb on this, but couldn't variables declared as "register"
> go into the zero page?  Wouldn't this solve the problem of how to force
> variables
> into the zero page from within C?

When register variables are enabled, such variables will be allocated in the
zero page. However, each function must save and restore the zero page
locations used, because a function may call other functions (which also use
the zero page space allocated for register variables). This means that a
certain overhead is associated with register variables.

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.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-01-27 20:24:38 CET