Re: Intel Assembler on OSX?
Re: Intel Assembler on OSX?
- Subject: Re: Intel Assembler on OSX?
- From: Cédric Luthi <email@hidden>
- Date: Sun, 5 Nov 2006 17:12:43 +0100
On 4 nov. 06, at 20:09, Eric Albert wrote:
That's not actually necessary, though I can't remember if the
compiler might do it anyway.
gcc will realign the stack if it's given the -mstackrealign switch.
Excerpt from man gcc
-mstackrealign
Realign the stack at entry. On the Intel x86, the -
mstackrealign
option will generate an alternate prologue/epilogue that
realigns
the runtime stack. This supports mixing legacy codes
that keep a
4-byte aligned stack with modern codes that keep a 16-
byte stack
for SSE compatibility. The alternate prologue and
epilogue are
slower and bigger than the regular ones, and they require
one dedi-
cated register for the entire function. This also lowers
the num-
ber of registers available if used in conjunction with
the "reg-
parm" attribute. Nested functions encountered while -
mstackrealign
is on will generate warnings, and they will not realign
the stack
when called.
Cédric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden