data alignment and equivalence

data alignment and equivalence

i have a problem with data alignment for the ifc compiler. my application does number crunching on some ~GB sized arrays. for most of the code, single precision is ok, but the final result is double precision. since single and double are never used at the same time, i use the same memory area for both via the equivalence statement.

this worked just fine for me until i rewrote the core routines to use SSE. now i have the problem, that the compiler does not align REAL(8) arrays to 16 byte boundaries automatically. and when i enforce the alignment with the
directive, it will not allow the variables to be placed in an equivalence statement anymore.

any hints on what i could do?

thanks alot,


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I heard about this problem recently - there may be changes coming in a future version.

See if putting the variables in a COMMON with alignment specified helps.


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today