Re: [cc65] Macros in inline assembler

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-01-19 18:01:40
Hi!

On Thu, Jan 19, 2012 at 04:55:40PM +0100, Oliver Schmidt wrote:
> However to work with the inline assembler you
> have to turn off the C compiler optimizations which in all usecases I
> can imagine conteracts to what you want to archieve so that at least
> in my experience there's basically no good reason at all for using the
> inline assembler.

That's not true. For normal code, there's nothing that the optimizer will
change. One exception is inline asm code that reads or writes volatile memory,
a second one is self modyfying code. In both cases, this is not an inline
assembler problem, C code won't work either.

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 Jan 19 18:01:46 2012

This archive was generated by hypermail 2.1.8 : 2012-01-19 18:01:49 CET