[fpc-devel] cmem not aligning memory

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Apr 3 14:12:24 CEST 2010

On 03 Apr 2010, at 14:09, Micha Nelissen wrote:

> Do C memory managers guarantee any alignment anyway? Not for SSE (16 bytes) I'm sure, but 8 bytes I don't know.

From Linux' malloc man page:

For calloc() and malloc(), the value returned is a pointer to the allo-
cated memory, which is suitably aligned for any kind of variable, or
NULL if the request fails.

Mac OS X:

The allocated memory is aligned such that it can be
used for any data type, including AltiVec- and SSE-related types.


More information about the fpc-devel mailing list