Re: [eigen] Alignment issues

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I tried the following: http://ideone.com/XpgXyG

and with clang3.3/macosx 64bits, I get:

Address 0x7fff5274aa60 is 32 bytes aligned.

Address 0x7fff5274a980 is 128 bytes aligned.

Address 0x7fb9d9403940 is 64 bytes aligned.

Address 0x7fb9d94039c0 is 64 bytes aligned.

Address 0x7fb9d9801200 is 512 bytes aligned.

Address 0x7fb9d9801800 is 1024 bytes aligned.


meaning that std::vector seems to honor the alignas directive while new
does not. On ideone it's even worse::

On Linux 3.12.9-201.fc19.x86_64 with g++ 4.8.2 20131212 (Red Hat 4.8.2-7) I get:

Address 0x7fffc11af200 is 512 bytes aligned.
Address 0x7fffc11af280 is 128 bytes aligned.
Address 0x14b6010 is 16 bytes aligned.
Address 0x14b60a0 is 32 bytes aligned.
Address 0x14b61b0 is 16 bytes aligned.
Address 0x14b66c0 is 64 bytes aligned.

and

Address 0x7fff43993c00 is 1024 bytes aligned.
Address 0x7fff43993c80 is 128 bytes aligned.
....

and

Address 0x7fff53cb9580 is 128 bytes aligned.
Address 0x7fff53cb9600 is 512 bytes aligned.

but the last 4 are always the same.

Ilja



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/