Stack frames larger than 4K should be rejected, but what if I want more
Elronnd
elronnd at elronnd.net
Mon Jun 28 01:18:57 UTC 2021
On Sunday, 27 June 2021 at 19:41:40 UTC, Ola Fosheim Grøstad
wrote:
> On Sunday, 27 June 2021 at 18:56:57 UTC, IGotD- wrote:
>> In general I can agree with the rationale to not allow stack
>> frames larger than 4K when it comes to normal programming, it
>> makes sense.
>
> It makes no sense and would kill a system level language. The
> stack depth for Linux is 8MiB. 4KiB isn't even enough to fit a
> commonly sized FFT buffer, anything less than 16KiB is a joke
> IMHO.
If you need to quickly allocate very large buffers, you _can_
quickly allocate very large buffers. But the stack is not the
right place to do that.
More information about the Digitalmars-d
mailing list