|
From: Tom H. <th...@cy...> - 2004-03-14 13:00:32
|
In message <200...@ac...>
Julian Seward <js...@ac...> wrote:
> On Sunday 14 March 2004 11:50, Doug Rabson wrote:
>
> > > Yep. I had a look at glibc and as far as I can see it only does 8
> > > byte alignment, even on x86-64.
> >
> > I don't know about amd64 but ia64 really wants 16 byte alignment for
> > malloc.
>
> Is there anybody on the list who has Linux on ia64 and can investigate
> what alignment GNU malloc returns on that platform? That would be
> helpful.
The actual malloc in glibc appears to be capable of any reasonable
alignment, but the default is 8 byte.
This can be altered by defining MALLOC_ALIGNMENT to the required
alignment, but a grep of the glibc sources found no sign of any
platform setting that, at least in the version I looked at, which
is the version from Fedora Core 1.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|