This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Use gcc front-end for metrics
- From: "Roel Meeuws" <r dot j dot meeuws at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 18 Aug 2006 16:11:10 +0200
- Subject: Re: Use gcc front-end for metrics
- References: <ca324e150608180706i6010b9aas33022a323820be89@mail.gmail.com>
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
--------------------------------------------