RFC: std.json sucessor

Ola Fosheim Gr via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 22 21:48:14 PDT 2014


On Saturday, 23 August 2014 at 04:36:34 UTC, Walter Bright wrote:
> On 8/22/2014 9:01 PM, Ola Fosheim Gr wrote:
>> Does this mean that D is getting resizable stack allocations 
>> in lower stack
>> frames? That has a lot of implications for code gen.
>
> scopebuffer does not require resizeable stack allocations.

So you cannot use the stack for resizable allocations.

That would however be a nice optimization. Iff an algorithm only 
have one alloca, can be inlined in a way which does not extend 
the stack and use a resizable buffer that grows downwards in 
memory then you can have a resizable buffer on the stack:

HIMEM
...
Algorihm stack frame vars
Inlined vars
Buffer head/book keeping vars
Buffer end
Buffer front
...add to front here...
End of stack
LOMEM


More information about the Digitalmars-d mailing list