Re: [cc65] .global vs .export vs what i really need :)

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-10-24 20:35:41
On Fri, Oct 23, 2009 at 09:42:27PM +0200, Groepaz wrote:
> the optimizer moves around small pieces of code, which means that often labels
> will be referenced from a totally different place as before. the consequence
> is that i need to tell the assembler somehow that this symbol exists, ie i
> need to add the equivalent of a c prototype kindof.

Why? For code labels, forwards should work without a problem.

> mmh, since .global is already used, maybe you can add something
> like .proto / .protozp that does this? or is there infact a way to achive
> this with the existing stuff and i am just too dumb to read the docs? :)

Maybe you can explain why there is a problem. If a label isn't know when it is
encountered, the assembler assumes absolute addressing and fixes the correct
value once it gets known.

> and last not least as a teaser, this is from skoe's easyprog tool, compiled
> with -O, and then run through the optimizer:
>
> result: 8563 bytes, old: 10711 (2148 saved, 20%) time:374s

That sounds interesting! 

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 Sat Oct 24 20:43:31 2009

This archive was generated by hypermail 2.1.8 : 2009-10-24 20:43:33 CEST