VLA in Assembler

Foo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Dec 17 02:35:38 PST 2014


Hi,
Could someone explain me, if and how it is possible to allocate a 
variable length array with inline assembly?
Somewhat like
----
int[] arr;
int n = 42;
asm {
     // allocate n stack space for arr
}
----
I know it is dangerous and all that, but I just want it know. ;)


More information about the Digitalmars-d-learn mailing list