Re: [cc65] .EXPORT of numeric constant

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2013-01-15 09:24:13
Hi!

On Tue, Jan 15, 2013 at 01:27:03AM +0100, silverdr@wfmh.org.pl wrote:
> Just double-checking as I believe this is actually correct behaviour and
> othing is being done to distinguish between numeric stuff that is never
> used as address reference and actual addresses, right?

The linker tries to be smart about stuff where the value is know. So in

        .export foo
        foo = 42

foo is exported as bytes sized value, while in

        .export bar
        bar = 42*42

bar is exported as word sized.

If you know better than the linker, just tell it. In

        .export foo : abs
        foo = 42

foo is exported as word sized despite being less than 256.

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 Jan 15 09:24:25 2013

This archive was generated by hypermail 2.1.8 : 2013-01-15 09:24:31 CET