emacs-devel
[Top][All Lists]
Advanced

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

Re: named-let


From: Helmut Eller
Subject: Re: named-let
Date: Tue, 12 Jan 2021 10:13:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Mon, Jan 11 2021, Stefan Monnier wrote:

> I don't know how easy it is to implement for
> native-comp.  Maybe GCC magically does it for us?

GCC can optimize sibling-calls; that's a class of tail-calls where the
argument count of the callee and caller are the same.  Other tail-calls
are difficult to optimize, because most systems prescribe a the
caller-pops-arguments calling convention (including the varargs stuff).

Last time I checked LLVM, doesn't even optimize sibling-calls.

Helmut




reply via email to

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