This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add x32 pthread types


> On Mon, May 14, 2012 at 11:22 AM, Roland McGrath <roland@hack.frob.com> wrote:
> > I think your intent is (and should be) to make the x32 layouts
> > exactly match the x86_64 ones for these types. ?Is that right?
> >
> > There are numerous occurrences of 'long int' in this file.
> > So some sizes and alignments won't match without further changes.
> 
> Since those structs have pointer fields, x32 ones won't have the
> same lay out as x86-64 unless we pad it.  Also long int is OK.
> I don't believe x32 must have the same layout in memory as
> x86-64.

It looks like the x86_64 formats took some pains to get 8-byte alignment
even on ones that don't have any 8-byte-wide fields.  I wonder if that
might be relevant for performance on x32 as well.


Thanks,
Roland


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