This forum has been archived. All content is frozen. Please use KDE Discuss instead.

ABI compatibility due to different alignment options

Tags: None
(comma "," separated)
eudoxos
Registered Member
Posts
36
Karma
0
Hi,

I separated the boost::python wrapper from Yade to http://www.launchpad.net/minieigen recently. I have crashes if code compiled with EIGEN_DONT_ALIGN imports that module, which was compiled without alignment disabled.

Do alignment options have to match exactly? What would happen if the module were compiled non-aligned and imported from aligned code? Can there be ABI incompatibility between different sub-architectures (if I compile with -march=native on different machines)?

Thanks --
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
yes, "by construction" the EIGEN_DONT_ALIGN option change the ABI. I'm not sure about the -march=native option though.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]