This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ ABI: Reuse of tail padding
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: cxx-abi-dev at codesourcery dot com, gcc at gcc dot gnu dot org, jason at redhat dot com
- Date: Wed, 14 Aug 2002 22:15:07 +0100
- Subject: Re: C++ ABI: Reuse of tail padding
- Organization: Codesourcery LLC
- References: <151750000.1029358418@warlock.codesourcery.com>
Mark Mitchell wrote:
> We have a problem here.
> Intel's compiler does not pack things into the tail padding.
> Neither, I expect, does HP's.
I would like to get hard data from more than the two compilers
you've verified.
> Technically, the G++ version is superior. (It reduces space used by
> objects.) On the other hand, it was basically impossible for
> implementors to figure out what was intended from the spec.
>
> I think I would prefer to change G++, and drop this idea from the spec,
> even though it is an optimization.
Although using tail padding is neat, how many bytes would it
save in real programs? You only get it with structs of the form
int i;
char c;
or (on some non-i86 machines)
double d;
int i;
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org