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

Re: debug



At  3:27 PM 9/28/94 +0000, Neves wrote:
>Yngve Skramm (skramm@ilf.uio.no) wrote:
>: Beginner question about MCL 2.0: We can't seem to get trace to work
>: properly. It shows values entering and exiting a function, that is correct.
>: However a recursive function is called several times, and should produce an
>: output from trace every time it is called. This doesn't happen :-( We copy
>: the manual exactly, but get a different printout. Has anybody got a
>: solution to this problem?
>
>Make sure you include the "notinline" declaration in the recursive
>definition.  e.g. (declare (notinline fact))
>-David

Alternatively, you can compile with an (optimize (debug 3))
declaration in effect. This disables both tail-recursion elimination
and self-call optimization.