Creating fixed array on stack
Seb
seb at wilzba.ch
Sat Jan 12 13:34:12 UTC 2019
On Saturday, 12 January 2019 at 13:17:00 UTC, Adam D. Ruppe wrote:
> On Saturday, 12 January 2019 at 08:10:47 UTC, Andrey wrote:
>> But this requires using of C function "alloca". I think this
>> cause some RT overhead (and in output asm code) in comparison
>> with C++ variant. Or I'm not right?
>
> alloca is a magical function; a compiler intrinsic that works
> the same way as the C built-in.
Yup, specifically (at least for DMD) it is defined here:
https://github.com/dlang/druntime/blob/master/src/rt/alloca.d
More information about the Digitalmars-d-learn
mailing list