[Issue 2278] Guarantee alignment of stack-allocated variables on x86
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 11 15:08:18 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2278
shro8822 at vandals.uidaho.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |shro8822 at vandals.uidaho.edu
------- Comment #3 from shro8822 at vandals.uidaho.edu 2008-08-11 17:08 -------
IIRC there is a x86 (enter leave?) that moves the top of the stack in a way
that can be undone. If that allows a non literal arguments, a pair of these
around the scope would do it.
offset = FP
offset += ENTER_META_DATA.sizeof
offset &= 0x0f
offset -= ENTER_META_DATA.sizeof
enter offset // push offset space and some metadata
..... scope
leave // pop it all off
--
More information about the Digitalmars-d-bugs
mailing list