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

Reply via email to