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

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-04-28 22:24:37
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. 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. Which makes sense for the reasons
explained by Oliver.

> yet in C:
>
> extern void foo(void);
>
> or you get the error...

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

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 Wed Apr 28 22:24:41 2010

This archive was generated by hypermail 2.1.8 : 2010-04-28 22:24:43 CEST