[Openmcl-devel] tracing recursion with ccl

Pierpaolo Bernardi olopierpa at gmail.com
Thu Jul 7 17:26:02 PDT 2016


On Fri, Jul 8, 2016 at 12:49 AM, Ron Garret <ron at flownet.com> wrote:
> This is a feature :-)
>
> The CCL compiler is pretty smart about compiling self-calls to make them efficient.  One of the ways it does that is by bypassing the entry code that checks for things like that the correct number of arguments have been passed, and whether or not the function has been traced.
>
> You can disable this by declaring the function to be “notinline”, i.e.:
>
> (declaim (notinline trim-head))

or by optimizing for debugging with a local declaration or a global declamation.

(declaim (optimize debug))



More information about the Openmcl-devel mailing list