c++ - minigw-w64 is incapable of 32 byte stack alignment, easy work around or switch compilers? -


i'm trying work avx instructions , windows 64bit. i'm comfortable g++ compiler i've been using that, however, there big bug described reported here , rough solutions presented here.

basically, m256 variable can't aligned on stack work avx instructions, needs 32 byte alignment.

the solutions presented @ other stack question linked terrible, if have performance in mind. python program have run every time want debug replaces instructions sub-optimal unaligned instructions, or over-allocating , doing bunch of costly hacky pointer math in code proper alignment. if pointer math solution, think there still chance seg fault because can't control allocation or r-values / temporaries.

i'm looking easier , cheaper solution. don't mind switching compilers, prefer not to, if it's best solution will. however, poor understanding of bug is intrinsic windows 64 bit, switching compilers or other compilers have same issue?

you can solve problem switching microsoft's 64-bit c/c++ compiler. problem not intrinsic 64-bit windows. despite kai tietz said in bug report linked, microsoft's x64 abi allow compiler give variables greater 16-byte alignment on stack.

also cygwin's 64-bit version of gcc 4.9.2 can give variables 32-byte alignment on stack.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -