Re: Code analysis, call graphs for Common Lisp



Raymond Toy <raymond.toy@xxxxxxxxxxxx> writes:

>
> CMUCL includes an xref feature. This will produce a call graph, and
> since it's in the compiler it should handle macros and such just fine.
> It's described in the User manual.

Thanks, Ray, it looks like it might come in handy. One possible
problem is that it takes into account compiler optimisations that
eliminate code. I suppose turning off the compiler optimisations might
help in that case. Also, it would be nice if it had a recursive
"what-does-it-call?" function in addition to the "who-calls" function!

A couple of other posters have mentioned possibilities that might
work, and hopefully with more portability.

David


--

David Trudgett
http://www.zeta.org.au/~wpower/

It's sociologically interesting, though scary, that you can be inside
an evil system and be somehow unaware of it.

-- Actor Anthony Sher on growing up in apartheid-South Africa,
interviewed by John Walsh, The Independent, 1 May, 2000
.



Relevant Pages

  • Re: derefrencing pointer to incomplete type
    ... struct _graph_vertex { ... If your compiler complains if you take away ... - you forgot to check for malloc() success or failure. ... typedef struct _graph graph_type; ...
    (comp.lang.c)
  • Re: Perform Thru/Go to vs. Perform - Compile Speed
    ... lot less graph processing in the compiler. ... program representation, which is usually a directed acyclic graph. ... a complicated graph representing spaghetti code is likely to ...
    (comp.lang.cobol)
  • LMbench as gcc performance regression test?
    ... of LMBench results vs. Linux kernel version, ... same compiler. ... Has anyone seen a similar graph showing LMBench results vs. gcc version, ...
    (Linux-Kernel)
  • Re: LMbench as gcc performance regression test?
    ... >>of LMBench results vs. Linux kernel version, ... >>Has anyone seen a similar graph showing LMBench results vs. gcc version, ... I need to make sure that moving to a newer compiler for our kernel ...
    (Linux-Kernel)
  • Re: Charles container library usage examples
    ... > fail. ... While even the C compiler can optimize away code that will never ... David Trudgett ... Omnis enim res, quae dando non deficit, dum habetur ...
    (comp.lang.ada)