Mail Archives: djgpp/2001/03/21/05:54:54
On Tue, 20 Mar 2001, James W Sager Iii wrote:
> When your program starts up, a global binary output file would open.
> It would initialize to 0's from 0 to the number of functions you have in
> your program.
>
> Then each time a function is called, it'd update the index in the output
> binary file to 1.
>
> How it'd work:
>
> You just run your code as normal.
>
> But if you get a tricky memory leak bug, and your project is huge,
> you'll want to start cutting your project down into little pieces to
> isolate it. This ripper utility would take the first step for you.
>
> You run ripper part 1, and it spawns the functions and indicies into your code.
>
> You compile and run until you hit the bug in the code.
>
> You then run ripper part 2, and it removes every function that wasn't
> used, and outputs new files for you to make debugging easier.
There's `gcov', a coverage analysis tool that is part of GCC. Current
GCC ports don't include gcov.exe, but I'm told that the next one will.
- Raw text -