[Top][All Lists]

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

Re: Tail call elimination

From: Tim Murphy
Subject: Re: Tail call elimination
Date: Mon, 18 May 2020 19:30:11 +0000

$(shell) causes severe parse performance problems in large makefiles unless you use it extremely sparingly.

[insert strong _expression_ of frustration at make's deficiencies being treated as blessed] :-)



On Mon, 18 May 2020 at 19:18, Pete Dietl <address@hidden> wrote:
> Each of these has an obvious 'output', which is not the case for
> something like a comparison operator. This is also an objection
> against $(eq) and $(not), which are hidden behind the EXPERIMENTAL
> compilation flag.

I think the convection is that an empty string is false while a
non-empty string is true.

> Otherwise, POSIX prescribes an expr command, so with:
> expr = $(shell expr '$1')
> you can already do $(call expr,2 * 3 + 5).

Ooh I didn't know about that.
That seems like a good alternative.

reply via email to

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