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

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-10-18 00:17:09
On Wed, Oct 17, 2012 at 05:28:35PM -0400, Brad Smith wrote:
> I'm confused by your example. Why would two assignment statements not
> generate two writes?

Because in many cases, the compiler detects that the second write is useless
(because the first one did the job already) and removes it. The standard
workaround in C is to use "volatile", but cc65 doesn't honour this keyword.
                
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 Thu Oct 18 00:17:18 2012

This archive was generated by hypermail 2.1.8 : 2012-10-18 00:17:22 CEST