[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debug
- To: info-mcl@services.cambridge.apple.com
- Subject: Re: debug
- From: futrelle@ccs.neu.edu (Robert Futrelle)
- Date: 28 Sep 1994 17:44:17 GMT
- Newsgroups: comp.lang.lisp.mcl
- Organization: College of CS, Northeastern University
- References: <skramm-280994160231@hfmac398.uio.no>
In article <skramm-280994160231@hfmac398.uio.no> skramm@ilf.uio.no (Yngve Skramm) writes:
>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?
>
>Yngve Skramm
If the function is tail-recursive, it is normally compiled as such and
there are no recursive calls to trace! Maybe that's your problem.
Tail recursion compiling can be turned off. The other trick is to
put in a useless statement that renders it non-tail-recursive to
force it to compile that way.
Bob Futrelle
--
Prof. Robert P. Futrelle | Biological Knowledge Lab, College of CS
Office: (617)-373-2076 | Northeastern University, 161CN
Fax: (617)-373-5121 | 360 Huntington Ave.
futrelle@ccs.neu.edu | Boston, MA 02115
- References:
- debug
- From: skramm@ilf.uio.no (Yngve Skramm)