This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Use gcc front-end for metrics


Hi,

I'm Roel Meeuws a dutch MSc. student that is working on a project
involving software metrics. I need a program that can determine a wide
variety of code metrics based on control flow graphs and abstract
syntax trees. While browsing the internet I found that there are no
good GPL'ed metrication tools out there and I decided to build one
myself.

In order to build a metrication tool I need a frontend that can
provide me with an abstract syntax tree containing information on all
actual language constructs in the code and also a CFG representation.
I reckon GCC has these capabilities and I was wondering if any of you
could tell me if it is possible to use just GCC's frontend.
Furthermore, where should I start, how do I extract the frontend from
GCC, which of the intermediate GCC representation could I use, are
they documented?

I would like to thank you in advance for any help you can give me.

kind regards,

Roel

--
Roel Meeuws

Delft University of Technology
Faculty of Electrical Engineering Mathematics and Computer Science
Computer Engineering Laboratory
Mekelweg 4, 2628 CD Delft, The Netherlands
--------------------------------------------
Email:r.j.meeuws@ewi.tudelft.nl
Office phone: +31 (0)6 10 82 44 01
--------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]