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