"Neo" <ti***************@yahoo.com> wrote in message
news:30*************@uni-berlin.de...
I've to parse C source files to put some profiling points at all basic
blocks like IF, FOR, WHILE, and FUNCTIONS. Is there any generic parser
available?
You can get such a parser for ANSI, GNU and MSVC from Semantic Designs.
See
http://semanticdesigns.com/Products/DMS/DMSToolkit.html.
Techniques for doing code instrumentation with DMS are documented
in a PDF file on the web page
http://semanticdesigns.com/Products/TestCoverage.
This page also describes test coverage tools, and leads to
a page on profiling tools (for C and many other languages)
that may already do exactly what you need, off the shelf.
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc.
www.semdesigns.com