Debugging tool: Trace function calls + variable usage automatically

Discussion in 'C Programming' started by Joerg Schoen, Jun 28, 2004.

  1. Joerg Schoen

    Joerg Schoen Guest

    Hi folks!

    "JSCPP" is a ANSI-C preprocessor and language parser. It can analyze or
    instrument C-code. The most prominent application currently is to add
    function trace calls to existing C programs simply by recompiling it.

    The tracing will show when functions are entered or left along with the
    arguments. Default is to trace EVERY function, but fine-grained control is
    possible through a custom header file.

    Additionally, one can trace how variables are changed or accessed.

    The program has been used successfully on large projects and can be helpful
    to detect errors.

    The program can emit the original sources after instrumenting them instead
    of the preprocessed sources. So it can be used to permanently add trace
    calls to C coding.

    Other ideas are to separate large and bloated functions into smaller ones as
    follows: prefix a large block by a certain pragma and run the code through
    jscpp. It will analyze the dependencies between the block and the
    surrounding subroutine (i. e. variables used/altered) and move the block to
    a separate subroutine, creating an appropriate function call.

    Documentation and example programs are included. You find the tarball under
    http://home.t-online.de/home/JoergSilkeSchoen/prg/prg.html
    Joerg Schoen, Jun 28, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rukmal Fernando
    Replies:
    4
    Views:
    839
    Richard Grimes [MVP]
    Oct 27, 2003
  2. Thomas Glanzmann

    Tool to trace function calls

    Thomas Glanzmann, Jun 27, 2005, in forum: C Programming
    Replies:
    3
    Views:
    320
    Morris Dovey
    Jun 29, 2005
  3. Rukmal Fernando

    Trace: Can anyone suggest a good tool to catch trace messages?

    Rukmal Fernando, Oct 10, 2003, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    291
    Richard Grimes [MVP]
    Oct 27, 2003
  4. henq
    Replies:
    1
    Views:
    120
    Peter Scott
    Jan 2, 2004
  5. Bob
    Replies:
    5
    Views:
    253
Loading...

Share This Page