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

From: Groepaz <groepaz1gmx.net>
Date: 2009-10-26 00:01:36
On Sonntag 25 Oktober 2009, Ullrich von Bassewitz wrote:
> > thats not an option. it's compiler generated code, which uses scopes, and
> > i cant do anything about it. i could remove them from the patterns that i
> > generate myself, but that doesnt really change anything (and removing
> > them would sometimes break other stuff). i must be able to "export" a
> > symbol from within a scope to global namespace, so i can make forward
> > references to it.
>
> I'm sorry, this is not possible. If you have the code in an intermediate
> form, you may be able to rewrite it without scopes, but that is the only
> idea I have for now.

mmmh. i could omit the scopes in the output file... yes. however, thats not 
really ideal, since they are then lost (obviously) and the original structure 
of the code can not be gathered from the output file (which is one of the 
goals). :/

> > so i still say whats needed is a pseudoop that works just like export,
> > but doesnt actually mark the symbol as exported. shouldnt be hard to add
> > at all :)
>
> I'm sorry, but I'm not able to fulfill everybodies wishes. I have to
> discuss tgi drivers, write line clipping code, fix bugs, discuss commit
> policies, update web pages, have discussions why web pages arent't updated,
> add dependency generation to the assembler, improve code generation of the
> compiler, discuss code generation issues, discuss platform library
> improvements, and do quite some other things. There's actually a limit to
> what I can do :-)

oh sure, i understand that ... the question is if you wont do it because of 
lack of time/interest/priorities (which is both perfectly understandable) - 
or if you are generally against it (there might be a good reason to not do it 
afterall). the latter should be discussed - and if in doubt i can (and will) 
create a patch for the assembler (but i have no interest in doing that if it 
wont be included afterwards =)).

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Terror ist der Krieg der Armen gegen die Reichen. Krieg ist der Terror der 
Reichen gegen die Armen. 
<Sir Peter Ustinov>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Oct 26 00:00:40 2009

This archive was generated by hypermail 2.1.8 : 2009-10-26 00:00:43 CET