NO

Author Topic: SSE alignment problem?  (Read 3238 times)

Offline Robert

  • Member
  • *
  • Posts: 247
SSE alignment problem?
« on: November 13, 2013, 07:31:37 AM »
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

Offline Robert

  • Member
  • *
  • Posts: 247
Re: SSE alignment problem?
« Reply #1 on: April 06, 2014, 08:10:16 AM »
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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: SSE alignment problem?
« Reply #2 on: April 06, 2014, 06:01:06 PM »
Thank you, Robert. I hope v8.0 works a little bit better in general...
/Pelle