SSE alignment problem?

Started by Robert, November 13, 2013, 07:31:37 AM

Previous topic - Next topic

Robert

Is there a Pelle's C equivalent to GCC's __attribute__((force_align_arg_pointer))?

I have a function which is using SSE intrinsic _mm_set1_epi8, _mm_cmpeq_epi8 and _mm_movemask_epi8 functions and the program is crashing after a few (3 or four) iterations of the function. The same problem occured with a MinGW compile of the program but was corrected by adding __attribute__((force_align_arg_pointer)) at the begining of the function. This solution was suggested at

http://www.peterstock.co.uk/games/mingw_sse/

and I thought that, perhaps, this was the problem that was causing the Pelle's C X64 compiled failures.

If there is a Pelle's C equivalent to to GCC's __attribute__((force_align_arg_pointer)) I will try it and see if that will solve the problem.

Robert Wishlaw

Robert

The problem I was having has vanished when the program is compiled with Pelle's C 8.00 RC1. Thank you Pelle for all the bug fixes and improvements. I am looking forward to exploring the new OpenMP capability in version 8.00.

Robert Wishlaw

Pelle

Thank you, Robert. I hope v8.0 works a little bit better in general...
/Pelle