[Issue 2278] Guarantee alignment of stack-allocated variables on x86

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 12 16:21:30 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2278





------- Comment #5 from bugzilla at digitalmars.com  2008-08-12 18:21 -------
The problem with entering a function and then aligning the stack is that the
code in the function can no longer access the function parameters with a known
offset.

Probably the best approach to this is to do the equivalent to alloca() -
allocate the aligned data on the stack separately, and store a pointer to it in
the regular stack frame. The compiler can sugar over all this.


-- 



More information about the Digitalmars-d-bugs mailing list