Re: [cc65] optimizer bug !?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2008-02-27 21:41:00
Good evening!

On Wed, Feb 27, 2008 at 06:07:04PM +0900, Yuji Kajikami wrote:
> I will report because it discovered the phenomenon that seems to be
> the bug of the optimizer.

It is - thanks for the report!

The compiler replaces loads of CPU registers from zeropage pseudo registers by
an immediate load of the CPU register, provided that it is able to track the
contents of the zeropage location. In case of the X and Y registers, the load
was actually replaced by an immediate load of A, which in your example was
removed later, because it was redundant.

There's a patch available from the bugs list: http://www.cc65.org/bugs.php, or
just wait until the new snapshot is built this night.

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 Wed Feb 27 21:41:15 2008

This archive was generated by hypermail 2.1.8 : 2008-02-27 21:41:19 CET