Sourcecode cleaup tool

Discussion in 'C Programming' started by AndrsA1b273@compuserve.de, Mar 14, 2008.

  1. Guest

    Hello,
    does somebody know a source code cleanup tool. It should be able to
    find unused functions in the source code an delete them. At the
    moment, I am just using Crystal Flow for C, but there is not process
    of automation to cleanup the source.
     
    , Mar 14, 2008
    #1
    1. Advertising

  2. Richard Guest

    writes:

    > Hello,
    > does somebody know a source code cleanup tool. It should be able to
    > find unused functions in the source code an delete them. At the
    > moment, I am just using Crystal Flow for C, but there is not process
    > of automation to cleanup the source.


    Did you try running a profiler? This can help.
     
    Richard, Mar 14, 2008
    #2
    1. Advertising

  3. Flash Gordon Guest

    Richard wrote, On 14/03/08 14:37:
    > writes:
    >
    >> Hello,
    >> does somebody know a source code cleanup tool. It should be able to
    >> find unused functions in the source code an delete them. At the
    >> moment, I am just using Crystal Flow for C, but there is not process
    >> of automation to cleanup the source.

    >
    > Did you try running a profiler? This can help.


    It will show you code that is definitely executed, but it won't show you
    that the function frig_pay_for_leap_year() is actually called even if
    only once every 4 years unless you are very careful. It also does not
    achieve the OPs aim of automating the cleanup.

    Personally I would suggest that if there is a tool to automate the
    cleanup you would have to check carefully what it has done and it still
    won't do the entire job. How will it know that no one used the -foo
    command line switch so the code for it is never called?
    --
    Flash Gordon
     
    Flash Gordon, Mar 14, 2008
    #3
    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. Roberto Rocco
    Replies:
    0
    Views:
    402
    Roberto Rocco
    Aug 22, 2004
  2. Terje Sæternes

    Display sourcecode

    Terje Sæternes, Sep 16, 2003, in forum: HTML
    Replies:
    2
    Views:
    376
    Davmagic com
    Sep 16, 2003
  3. Replies:
    4
    Views:
    377
    Thomas Weidenfeller
    May 30, 2006
  4. Mark Buch

    hide sourcecode

    Mark Buch, Feb 5, 2004, in forum: Python
    Replies:
    12
    Views:
    924
    Bernhard Herzog
    Feb 11, 2004
  5. Pieter Claerhout

    RE: hide sourcecode

    Pieter Claerhout, Feb 6, 2004, in forum: Python
    Replies:
    1
    Views:
    299
    Josiah Carlson
    Feb 6, 2004
Loading...

Share This Page