Mangling examples

Jim Dehnert dehnert at baalbek.engr.sgi.com
Sat Mar 25 04:51:29 UTC 2000


Martin von Loewis wrote:
> 
> I have some corrections for the mangling examples
> 
> _ZN1N1fE                 N::f (i.e. it's not a function)
> _ZN6System5Sound4beepE   System::Sound::beep  (likewise)

Actually, both could be either a data item or a function.  I've fixed that.

> _Z1fI1XE vPV N1AIT1_E1T  should be _Z1fI1XEvPVN1AIT1_EE
                                     _Z1fI1XEvPVN1AIT1_E1TE

> _ZngILi42EE vN1AIXplT1_Li2EE1TE     has an extra space

The spaces are intentional for readability (not much, I know) -- ignore them,
per the column header.
 
> Here are some more examples:
> 
> _Z3fooIiPFidEiEv         void foo<int,int(*)(double),int>()
> _ZaSA4_i                 operator=(int[4])
> _ZlsRSoRKSs              operator<<(std::ostream&,std::string const&)
> (i.e. really operator<<(::std::basic_iostream<char,
> std::char_traits<char> >&,::std::basic_string <char,::std::char_traits<char>,
>                        ::std::allocator<char> > const &)

Thanks.  I added these.  Is the second one right, or should it be encoded
as a pointer to int?  (I don't know the C++ rule on this.)

Jim

-	    Jim Dehnert		dehnert at sgi.com
				(650)933-4272




More information about the cxx-abi-dev mailing list