Re: Memory alignment of pointers for sparc64
> Swish-e allocates memory from a memory pool. The application byte-aligns
> the allocated pointers based on the sizeof(void *). (Actually the original
Oh, one other thing you may want to look at is obstack. Glibc contains
the functions internally, but you can also grab obstack.[ch] from the
glibc source (it is very portable, and generic).
Basically does what you are trying to do (allocations from single or
multiple pools). Obstack does use sizeof(long) for this alignment case,
FYI, and since dpkg uses it, I know it works on every arch that debian
supports (alpha, ia64, hppa, mips, mipsel, sparc, etc.)
--
Debian - http://www.debian.org/
Linux 1394 - http://linux1394.sourceforge.net/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
Reply to: