This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: New C++ ABI and -freg-struct-return?


> Is there a formal C/C++ ABI for gnu ix86?

g++ follows "mostly" the gABI and psABI of the platform, at least on
platforms that use the gABI and the psABI (e.g. Linux). That applies
in particular to calling conventions.

For the C++ parts of the ABI (virtual methods, inheritance, etc), no
formal ABI exists. For these parts, g++ 3 will use the emerging
standard ABI, see
http://reality.sgi.com/dehnert_engr/cxx/cxx-summary.html.

> I've been trying to find one for months and have been told by
> knowledgeable people that the only reliable documentation is the gcc
> source code.

For gcc 2, this is certainly the case. For gcc 3, it will be better
due to the new ABI.

Regards,
Martin

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]