Re: name decoration
From: Bern (x_at_x.com)
Date: 08/08/04
- Next message: Julián Albo: "Re: differences between c and c++"
- Previous message: Bern: "differences between c and c++"
- In reply to: Phlip: "Re: name decoration"
- Next in thread: Rolf Magnus: "Re: name decoration"
- Reply: Rolf Magnus: "Re: name decoration"
- Reply: Pete Becker: "Re: name decoration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 8 Aug 2004 23:20:22 +0800
is the name decoration for C compilers standardised?
"Phlip" <phlip_cpp@yahoo.com> wrote in message
news:DZqRc.457$%5.86@newssvr15.news.prodigy.com...
> Bern wrote:
>
> > what is the rule for decorating a symbol in c++?
>
> That rule, if any, is implementation specific. I assume you are talking
> about name mangling.
>
> Do you have an outer problem, or did you just hear the term "name
> decoration" somewhere.
>
> What happens is translation unit A compiles, and its function Foo() turns
> into fryingpan_Foo(). Translation unit B compiles extern void Foo(), and
its
> object file contains a link out to fryingpan_Foo(). The only relevant
thing
> is the two decorations match; the decorations' contents are irrelevant.
>
> Your compiler author might also write a code browser that reverses the
> decoration into its component types.
>
> --
> Phlip
> http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces
>
>
- Next message: Julián Albo: "Re: differences between c and c++"
- Previous message: Bern: "differences between c and c++"
- In reply to: Phlip: "Re: name decoration"
- Next in thread: Rolf Magnus: "Re: name decoration"
- Reply: Rolf Magnus: "Re: name decoration"
- Reply: Pete Becker: "Re: name decoration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]