Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are resources for building a static analyzer for C in C?

I have a school project to develop a static analyzer in C for C.

Where should I start? What are some resources which could assist me?

I am assuming I will need to parse C, so what are some good parsers for C or tools for building C parsers?

like image 828
Raphael Avatar asked Dec 09 '25 15:12

Raphael


1 Answers

I would first take yourself over to antlr, look at its getting started guide, it has a wealth of information about parsing etc.., I personally use antlr as it gives a choice of code generation targets.

To use antlr you need a c or c++ grammar file, pick of these up and start playing.

Anyway have fun with it..

like image 128
Stephen Gennard Avatar answered Dec 11 '25 04:12

Stephen Gennard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!