Re: [cc65] Optimization ideas

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2007-06-22 13:07:36
Hi!

On Fri, Jun 22, 2007 at 12:44:35PM +0200, Oliver Schmidt wrote:
> Would it be reasonable to have the zero page usage configurable at
> (compiler-)runtime? I.e. on the Apple 2 lots of (contiguous) zero page
> memory is available.

The current snapshot version (don't know about 2.11) allows to change the size
of the register bank using the --register-space option. Of course, you will
need a zeropage module allocating this space.
  
Runtime configuration is not possible, because the compiler must know about
the additional space at translation time - otherwise it is not possible to
generate code using the space. 

Beware: Some library modules (for example _printf) assume that the register
bank has least the 6 bytes (the current size).

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 Jun 22 13:08:48 2007

This archive was generated by hypermail 2.1.8 : 2007-06-22 13:08:50 CEST