This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Hi all, just an onfo about huw to use gcc tree
- From: Fabio Giovagnini <fabio dot giovagnini at aurion-tech dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 3 Mar 2007 21:15:14 +0100
- Subject: Hi all, just an onfo about huw to use gcc tree
Hi all,
I'd like to develop a tool able to do the following things:
1) to load all the .h and .c/.cpp files;
2) to analyze allo the data struct / unions and classes;
3) to give me for each data member of a struct or union and for each data
member of a class, the offset in bytes related to the base addess of a
generic istance of the struct/union and class.
In this way I could easily calculate the real address of each data member of
each global declared struct / union and classes, and I clould easily read
usign a simple communication protocol the content of a memory location of an
embedded system only knowing the map file and the offset of each member of
each global variable.
I suppose to do this could be usefully used the tree structure of gcc.
Is it?
If yes where could I find a tutorial to use the internals of gcc?
Thanks a lot
--
Fabio Giovagnini
Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
Tel. +39.335.8350919
Fax +39.051.8659009
www.aurion-tech.com
account telefono VoIP skype (www.skype.com):
aurion.giovagnini