Re: [cc65] optimizer or me?

From: Groepaz <groepaz1gmx.net>
Date: 2004-07-15 16:35:07
On Thursday 15 July 2004 16:13, Ullrich von Bassewitz wrote:

> It's not the number of instructions but the fact that any other code will
> destroy the contents of the A register, which contains the value of $D104.
> If the compiler finds that the register contents are destroyed, the
> following load from $D104 cannot be removed.

it should also be added that inserting some more instructions in between
those two isnt a proper fix that can be expected to work for all future
versions of the compiler (maybe someday it will be able to reorder
instructions :)) and it will also fail on other compilers (not that much
of a problem maybe, but its always good to write portable code).

gpz

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 15 16:28:51 2004

This archive was generated by hypermail 2.1.8 : 2004-07-15 16:29:00 CEST