[Mono-dev] Patch: Stack alignment on x86

Mark Probst mark.probst at gmail.com
Fri Oct 17 11:42:16 EDT 2008


Hi,

This patch aligns the stack in managed code on x86 to 16 bytes on all
platforms, not only on Darwin, as done (incompletely) previously.  In
addition the alignment can now be specified by a #define.

The reason for this patch is that floating point code that uses doubles
performs poorly if the stack (and thus the local variables) is not
aligned to at least 8 bytes.

Paolo: Please review.

Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x86_stack_align.diff
Type: text/x-patch
Size: 7044 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081017/243c19bf/attachment.bin 


More information about the Mono-devel-list mailing list