[cc65] Zeropage Regbank

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-02-06 10:38:12
----- Forwarded message from Shawn Jefferson <sjefferson@shaw.ca> -----
> Hmmm, for some reason my reply is not getting through to the cc65 list.

I will use this opportunity to remind everyone that several types of mails are
dropped by the mailing list server. The following is from the info mail
everybody got when subscribing:

------------------------------------------------------------------------------
WHEN POSTING TO THE LIST, PLEASE KEEP THE FOLLOWING IN MIND:

  [...]

  2. Please do not send program binaries or other attachments to the list.
     Place them on a ftp or web server and post a link instead. If you don't
     have ftp or web space available, please contact me in private mail.

  3. When answering, please keep quoted material down to a minimum. There are
     several filters for incoming mail, and you will NOT get notified in case
     of a problem - your mail will simply be dropped.
------------------------------------------------------------------------------

> I did look at the documentation for cc65 before asking this question.
> According to the dox:
>
> --register-space
[...]
> -----
>
> Which seems to say to me that the compiler doesn't automatically use this
> space for local variables declared as "register".

It does, but it will not allocate this space. You will have to make sure that
the register space is big enough (for example by supplying a modified
zeropage.o module).

> Just in general, using zeropage variables may speed up some loops and make
> the code smaller.

See here:

        http://www.cc65.org/doc/cc65-9.html

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Feb 6 10:39:16 2009

This archive was generated by hypermail 2.1.8 : 2009-02-06 10:39:19 CET