This is the mail archive of the
mailing list for the GCC project.
Turning cc1plus into a shared library
- From: Argiris Kirtzidis <akyrtzi at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 18 Feb 2008 02:56:28 -0800
- Subject: Turning cc1plus into a shared library
I'm interested in turning cc1plus into a shared library with an API on
top so that it's possible to:
-Programmatically parse & compile a C++ file
-Parse a file, traverse the internal tree representation and get any C++
information that you are looking for
-Parse, make changes to the internal tree, continue with the backend
processing (so you can, for example, programmatically add security
checks to all/some functions)
The API should be easy to use not only from C but from other languages
that can use C libraries.
Is there something similar that is already being developed ?
Any thoughts on the above ?