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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 11 14:38:57 PDT 2008


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





------- Comment #2 from bugzilla at digitalmars.com  2008-08-11 16:38 -------
Keeping the stack always aligned is not that simple. The code generator will
also push/pop register pairs when it runs out of them.

Probably the most practical approach is to align static arrays by using the
code to AND the ESP register, but this means that there will be two frame
pointers for the function. Ug.


-- 



More information about the Digitalmars-d-bugs mailing list