[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debug
- To: neves@aristotle.ils.nwu.edu (Neves ), info-mcl@services.cambridge.apple.com
- Subject: Re: debug
- From: bill@cambridge.apple.com (Bill St. Clair)
- Date: Wed, 28 Sep 1994 14:40:04 -0400
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.