Mangle functions

Andrew Haley aph@redhat.com
Mon Jan 28 19:23:00 GMT 2008


Daniel Lohmann wrote:
> 
> On 26.01.2008, at 23:15, Ron Kreymborg wrote:
> 
>> Is there a way the C++ pre-processor can access the mangled name of a 
>> class
>> method? This would greatly simplify implementing interrupt handlers as
>> private class methods in embedded systems where the processor uses an
>> interrupt vector table. Currently one must manually build the mangled 
>> name
>> and pass it to the gcc "alias" attribute.

Why not simply give the handlers C linkage?  That's a much cleaner and simpler
solution, and it's what everyone else does AFAIAA.

Andrew.



More information about the Gcc-help mailing list