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

From: <silverdr1wfmh.org.pl>
Date: 2010-04-29 12:18:37
On 2010-04-28, at 22:24, Ullrich von Bassewitz wrote:

>
> On Wed, Apr 28, 2010 at 05:29:53PM +0200, silverdr@wfmh.org.pl wrote:
>> What would bother me more than the need to use the underscore is  
>> the perceived inconsistence:
>
> Prepending an underscore has been a common behaviour, even for very  
> old C
> compilers.

I would say "especially for the very old compilers" ;-)

> There are other ways to mangle the names (appending a $ or
> similar), but I don't know a single C compiler that doesn't change the
> identifiers when generating assembly.

AFAIR there are options in gcc, which allow control over this..

silverdr$ gcc -v --help 2>&1 |grep unders
   -fleading-underscore        Give external symbols a leading  
underscore
NanJing:~ silverdr$

yup - seems there is something

>
> ... which is no problem since you realize the error, fix the  
> identifier and
> things work :-)
>

And if I had to choose between --no-leading-underscore and --create- 
dep for ASM - I would obviously prefer the latter ;-)

Regards,

-- 
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 Thu Apr 29 12:18:52 2010

This archive was generated by hypermail 2.1.8 : 2010-04-29 12:18:54 CEST