Re: [cc65] Code optimizations

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-04-17 17:50:09
Hi!

On Fri, Apr 16, 2010 at 09:48:11PM +0200, Oliver Schmidt wrote:
> > I've already found one or two that may be added in the near future.
>
> Cool, already looking forward to it ...

Don't overrate it. As an example, while loop inversion (which I have just
added) adds two cycles for while loops that are never executed, but removes a
jump out of the code path if the loop is actually executed. It is correct that
even small gains add up, but it might be difficult to find a use case where
this change has a measurable effect. It hasn't been much work and I can
proudly state that cc65 now does while loop inversion, but apart from that the
actual benefit is negligible :-)

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 Sat Apr 17 17:50:16 2010

This archive was generated by hypermail 2.1.8 : 2010-04-17 17:50:18 CEST