Re: [cc65] Passing variables from asm to c and vice versa

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2008-08-05 22:58:46
On Tue, Aug 05, 2008 at 10:43:32PM +0200, Stefan wrote:
> So it's up to the linker to decide whether the expression is constant or
> not ?

This is just one reason. The other is that text I cited from the standard says
that the constructs you were using aren't allowed.

> Accordingly the compiler inserts the code for the substraction and thus the
> linker step comes
> too late to see, that after the substraction the expression had still been
> constant.
> Anyway, without arithmetic the decision is made via a constant, correctly.

Yes.

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 Tue Aug 5 22:58:56 2008

This archive was generated by hypermail 2.1.8 : 2008-08-05 22:58:58 CEST