[fpc-devel] cmem not aligning memory

Marco van de Voort marcov at stack.nl
Sat Apr 3 14:10:17 CEST 2010


In our previous episode, Jonas Maebe said:
> > Or do we have to allocate more bytes for blocks that are a multiple of 8?
> 
> FPC's default memory manager even guarantees 16 byte alignment (for vectors).

So a possible solution is to allocate 16-sizeof(ptruint) bytes more?

for 32-bit that would mean:

<12 bytes slack><size><data>




More information about the fpc-devel mailing list