I build a .so by icc 10.1.011 64bit version on linux.
but i got many segment fault when running .so.
i caught the segmentation fault in gdb. found all segmentation fault is due to icc use movaps to initialized struct or copy struct, the the variant doesn't aligned to 128bit.
which compile option should i use when i build 64bit .so to make sure all variant will be aligned to 128bit if it will use movaps?
i have tried dbg version and release version, they have the same issue.
for debug version, following compile option are used:
-g -O0 -static-intel -pthread -fno-rtti -fno-exception
for release version
-static-intel -pthread -fno-rtti -fno-exception -O3
I also tried following options, results are same:(.
-alias, -ffnalias, -Zp16, -alias-args -falign-function=16..