This is the mail archive of the mailing list for the pthreas-win32 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthreads-win32 2.8.0, stack alignment, and SSE code

I've just read this whole thread for the first time. I haven't come across this issue of alignment on Intel processors before so I thought I'd better at least Google around the subject before replying. Unfortunately I've got to run now and won't be reading mail for another 5 days or so.

I would very likely include the patch as a build option, so I'm wondering if you've tried building the library with the -mstackrealign gcc flag that does the same thing as force_align_arg_pointer (I haven't tried either of these but read about it).


Ramiro Polla wrote:
Sébastien Kunz-Jacques wrote:
If for some reason it is not desirable to patch the lib, would it be possible to have some easy to see disclaimer added about this problem somewhere?

Oh, that's not my call =). It's up to Ross Johnson to decide. I simply had lots of free time today and decided to share my ideas. You can disregard anything I said... (although I think they might help).

The patch is not necessary because 4-byte alignment is enough for x86 and Win32, but it certainly might help some people to avoid a headache like you mentioned.

Ramiro Polla

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]