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

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat Jun 24 12:33:00 GMT 2000


> 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


More information about the Gcc mailing list