Re: [cc65] Undersores required for all asm calls?

From: <silverdr1wfmh.org.pl>
Date: 2010-04-28 17:29:53
On 2010-04-28, at 12:19, Oliver Schmidt wrote:

>> ...but it is counter to what I would want.
> 
> This behaviour is very popular and quite useful. This way the asm
> programmer can easily express which symbols are to be considered the
> interface to the C code - and which are considered just implementation
> artifacts. Or view it from adifferent perspective it allows the asm
> programmer to have symbols visible to the linker (aka public) while
> yet not polluting the C namespace.
> 
>> Is there some trick to keep from having to add all the unders
>> to public symbols?
> 
> Given my statement above I'd doubt that very much...

What would bother me more than the need to use the underscore is the perceived inconsistence:

In ASM one has to:

.EXPORT _foo
_foo: rts


yet in C:

extern void foo(void);

or you get the error...

-- 
SD!----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Apr 28 17:29:58 2010

This archive was generated by hypermail 2.1.8 : 2010-04-28 17:30:01 CEST