C parser for reading C source files?

N

Neo

Hi all,

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?

-Neo
 
I

Ira Baxter

Neo said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,155
Messages
2,570,871
Members
47,401
Latest member
CliffGrime

Latest Threads

Top