gcc name mangling

y2bismil@engmail.uwaterloo.ca y2bismil@engmail.uwaterloo.ca
Tue Oct 21 15:24:00 GMT 2003


Okay, 
reading the description, it seems to make a big deal of not being binary
compatible with code not compiled with this option.

Perhaps the best solution would be to simply prepend all assembler names with
underscores?

Anyone have any experience with using gAS and GCC together.  What is the common
practice?  I hope I'm not imagining, but I did some work using gcc and external
assembler (s files), using the m68k.  I don't recall name mangling being an issue.

Yamin

Quoting Eljay Love-Jensen <eljay@adobe.com>:

> Hi Yamin,
> 
> Checkout the -fleading-underscore / -fno-leading-underscore flag.
> 
> Note:  this is a powerful flag, since it has sweeping effects.
> 
> HTH,
> --Eljay
> 
> 




----------------------------------------
This mail sent through www.mywaterloo.ca



More information about the Gcc-help mailing list