Stack 16
Sclytrack
Sclytrack at pi.be
Mon Apr 14 11:42:51 PDT 2008
Feature request:
[Stack(16)]
struct MyStruct
{
float number;
}
Introduce a second stack supported by the programming language. On a 32 bit
system the normal 4 byte stack and a secondary 16 byte stack is used to
store parameters.
void doStuff( int number, MyStruct s) //s dumped on 16 byte stack
{
MyStruct a; //also 16 byte aligned.
}
Also support compile time reflection to get the stack attribute.
static if (T does it have Stack attribute, and is it 16 byte aligned)
{
}
Any request like for Stack(8) would then be dumped on the 16 byte stack since
it only has the 4 byte and 16 byte stack to choose from.
Scly
More information about the Digitalmars-d
mailing list