This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: How to get 16-byte stack alignment in leaf functions




-----Original Message----- From: Dave Allured - NOAA Affiliate

On Tue, Sep 10, 2013 at 3:42 AM, Andrew Haley <aph@redhat.com> wrote:
What is the faulting instruction?

movdqa, an SSE instruction that requires 16-byte alignment.  This is
about a dozen instructions within the dynamic loader.

By some coincidence the same problem with movdqa cropped up (and a solution found) in a perl forum:

http://www.perlmonks.org/?node_id=1052707

In a nutshell, the solution there was to invoke "__attribute__ ((aligned(8)))", which meant that gcc generated movdqu instructions instead of the faster movdqa.

I don't know if that necessarily helps here :-)

Cheers,
Rob



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