[Openmcl-devel] tracing recursion with ccl

◒ Simon Lucas ◒ simon at spiral.co.uk
Thu Jul 7 16:23:47 PDT 2016


Great tip. Just what I needed :)

thank-you

On 7 Jul 2016, at 23:49, Ron Garret 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))
> 
> rg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20160708/d2d31f1e/attachment.htm>


More information about the Openmcl-devel mailing list