Subj : Re: Performance impact of disaligned structures To : comp.programming From : Ben Pfaff Date : Wed Oct 05 2005 07:25 am mschaef@fnord.io.com (MSCHAEF.COM) writes: > Does malloc generally make any guarantees about alignment, or is this a > platform-specific thing? From C99: > The pointer returned if the allocation succeeds is suitably > aligned so that it may be assigned to a pointer to any type > of object and then used to access such an object or an array > of such objects in the space allocated (until the space is > explicitly deallocated). -- "Q: How does a hacker fix a function which doesn't work for all of the elements in its domain? A: He changes the domain." --Thorfinn .