Re: parsing a c project

2010-08-04 Thread Eli Bendersky
On Wed, Aug 4, 2010 at 14:33, Aitor Garcia wrote: > Hi, > > I need to know the memory locations of all variables in a C project > including > variables allocated inside structs. > Aitor, try the pycparser project (http://code.google.com/p/pycparser/) - it's a complete ISO C parser in pure Python

Re: parsing a c project

2010-08-04 Thread Jon Clements
On 4 Aug, 12:33, Aitor Garcia wrote: > Hi, > > I need to know the memory locations of all variables in a C project including > variables allocated inside structs. Pray tell us why? > > What I want to do in to expand the structs into its basic elements (floats, > int16 and int8). > > In a  header

parsing a c project

2010-08-04 Thread Aitor Garcia
Hi, I need to know the memory locations of all variables in a C project including variables allocated inside structs. What I want to do in to expand the structs into its basic elements (floats, int16 and int8). In a header file (example.h) I have the following definitions. struct house{ flo