Re: [cc65] Literal cast to pointer generating unnecessary code with [].

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-10-17 22:24:28
On Tue, Oct 16, 2012 at 07:53:02PM -0400, Brad Smith wrote:
> I ran into an interesting case today. This is code produced by the
> latest snapshot (2.13.9.20121016). This is with -O, but the same basic
> problem appears without it.

Thanks for the report! There are quite some cases where cc65 does generate bad
code. These cases are not easy to fix because of the internal structure of the
compiler. So while I will try to keep it in mind, I cannot promise anything.
At least you know how to have the compiler generate better code:-)

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 Oct 17 22:25:08 2012

This archive was generated by hypermail 2.1.8 : 2012-10-17 22:25:11 CEST