bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Make 4.4.1 fails in a spectacular fashion on NetBSD 10.0 AMD64


From: Dmitry Goncharov
Subject: Re: GNU Make 4.4.1 fails in a spectacular fashion on NetBSD 10.0 AMD64
Date: Fri, 19 Apr 2024 14:38:19 -0400

On Fri, Apr 19, 2024 at 1:42 PM Paul Smith <psmith@gnu.org> wrote:
> The main advantages to alloca are twofold:
>
> 1) efficiency for small local buffers, which GNU Make uses a lot.
>
> 2) simplification of the code because you don't have to track this
> memory and ensure it's freed regardless of how the function returns.

Dennis, do you see an alternative that is at least equally efficient,
simple and portable?
One alternative that is equally efficient and simple is variable length arrays.
However, there is a question about portability of vla vs alloca.

regards, Dmitry



reply via email to

[Prev in Thread] Current Thread [Next in Thread]