[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Compiler inlining
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Compiler inlining |
Date: |
Mon, 23 Oct 2006 09:01:51 +0200 |
On 10/22/06, John Cowan <address@hidden> wrote:
I'm thinking of redefining "cdr". No, really. What will that cost
me at compile time? Does the compiler have hard-wired knowledge
of "cdr" that will have to be modified, or is it treated just
like any other known function?
Like in the numbers egg, certain standard procedures are usually
inlined. "cdr" is among these. To disable that, do a
(declare (not standard-bindings cdr))
See the numbers egg about an example how to handle this at compile-time
(i.e. a separate .scm file with the declarations and a compiled .so that
provides the implementation).
See also here: http://tinyurl.com/yhull6
cheers,
felix
--
http://galinha.ucpel.tche.br:8081/blog/blog.ssp