Re: Intermediate representation

2009-06-08 Thread Ian Lance Taylor
Nicolas COLLIN writes: > In my version DECL_SAVED_TREE is defined as : > #define DECL_SAVED_TREE(NODE)DECL_MEMFUNC_POINTER_TO (NODE) > I just looked at DECL_MEMFUNC and it doesn't do what I want. > Then I don't know how to get the statements in the FUNCTION_DECL I got. You must be worki

Intermediate representation

2009-06-08 Thread Nicolas COLLIN
In my version DECL_SAVED_TREE is defined as : #define DECL_SAVED_TREE(NODE)DECL_MEMFUNC_POINTER_TO (NODE) I just looked at DECL_MEMFUNC and it doesn't do what I want. Then I don't know how to get the statements in the FUNCTION_DECL I got. Nicolas COLLIN Ian Lance Taylor a écrit : Nicol

Re: Intermediate representation

2009-06-08 Thread Ian Lance Taylor
Nicolas COLLIN writes: > I want to go through the entire internal tree in GCC but I have a > problem with functions. > Indeed I would like to know the declarations and functions called by a > function. > I assume I have to go into the function's scope but I don't know how. > I read the source cod

Intermediate representation

2009-06-07 Thread Nicolas COLLIN
Hello, I want to go through the entire internal tree in GCC but I have a problem with functions. Indeed I would like to know the declarations and functions called by a function. I assume I have to go into the function's scope but I don't know how. I read the source code but I didn't find anythi

Re: Intermediate representation

2009-05-26 Thread Dave Korn
Nicolas COLLIN wrote: > Hello again, > > I 'm still working on egcs 1.1 and the function cp_namespace_decls is > not implemented in. Well, the definition is very simple tree cp_namespace_decls (tree ns) { return NAMESPACE_LEVEL (ns)->names; } and NAMESPACE_LEVEL exists in egcs-1.1, so why n

Intermediate representation

2009-05-26 Thread Nicolas COLLIN
Hello again, to answer your question my code's purpose is to write a kind of tree in a file, the main arborescence is the classes, their method (with parameters, return type, ...), their attributes, etc... it will also recognize some new keywords I will introduce thanks to "__attribute__". In

Intermediate representation

2009-05-26 Thread Nicolas COLLIN
Hello again, I 'm still working on egcs 1.1 and the function cp_namespace_decls is not implemented in. I just want to get the classes and functions implemented in my source code and I tried to get them with the function gettags but I think I didn't understand something. I tried to read some th

Re: Intermediate representation and informations

2009-05-18 Thread Dave Korn
Nicolas COLLIN wrote: > In my source code I have some useful informations about variables (for > example a variable which is a real time attribute) and I would like to > know it in the intermediate representation to do what I have to about > it. Is there a way to have some informa

Intermediate representation and informations

2009-05-18 Thread Nicolas COLLIN
Hello, thank you for your answer, it was very useful. In my source code I have some useful informations about variables (for example a variable which is a real time attribute) and I would like to know it in the intermediate representation to do what I have to about it. Is there a way to have

Re: Intermediate representation

2009-05-14 Thread Ian Lance Taylor
Nicolas COLLIN writes: > I read that there is a variable global_namespace, I searched for it > but I didn't find anything. Would you know how I can get the root ? global_namespace is specific to the C++ frontend. It is defined in cp/name-lookup.c. I'm not sure what you mean by "the root," but

Intermediate representation

2009-05-14 Thread Nicolas COLLIN
Hello. Thank you for your help, now I understand much better how it works. At last I began to make some source code to explore the tree, indeed the macros are still the same except some. But I have some questions again ... I read that there is a variable global_namespace, I searched for it but

Re: Intermediate representation

2009-05-12 Thread Dave Korn
Nicolas COLLIN wrote: > Hello. Hi again Nicolas, > I have to create a file containing some informations by processing C++ > code source for work. > But why create a whole lexical analyzer while I can use the intermediate > representation tree of GCC ? > To do it, I'

Intermediate representation

2009-05-12 Thread Nicolas COLLIN
Hello. First I apologize for my english but I'm french and sometimes I make mistakes. I have to create a file containing some informations by processing C++ code source for work. But why create a whole lexical analyzer while I can use the intermediate representation tree of GCC ? To

Re: Intermediate representation and egcs 1.1

2009-05-07 Thread Dave Korn
Nicolas COLLIN wrote: > Hello, > first of all excuse me for my english but I'm french so sometimes I make > some mistakes (many ?). > I wonder if the intermediate representation (tree) that you describe on > this page (http://gcc.gnu.org/onlinedocs/gccint/Trees.html#Trees) was

Intermediate representation and egcs 1.1

2009-05-07 Thread Nicolas COLLIN
Hello, first of all excuse me for my english but I'm french so sometimes I make some mistakes (many ?). I wonder if the intermediate representation (tree) that you describe on this page (http://gcc.gnu.org/onlinedocs/gccint/Trees.html#Trees) was already implented in egcs 1.1. Indeed I ha

Re: intermediate representation

2006-02-27 Thread Jim Wilson
Mateusz Berezecki wrote: I'm new to GCC and I'd appreciate if somebody could point me to _all_ files which are responsible for intermediate representation and constructing it. See the internals documentation, for instance: http://gcc.gnu.org/onlinedocs/gccint/Passes.html#Passe

intermediate representation

2006-02-26 Thread Mateusz Berezecki
Hello List, I'm a fresh subscriber to this list :-) I'm new to GCC and I'd appreciate if somebody could point me to _all_ files which are responsible for intermediate representation and constructing it. I don't want to miss any files which may be crucial and GCC codebase seem

Re: Dumping Low Level Intermediate Representation for Another Compiler

2005-03-29 Thread tm_gccmail
On Mon, 28 Mar 2005, Wei Qin wrote: > Hello GCC developers, > > I am avid user of gcc and have 5 cross-gcc's installed on my machine. > Thanks for your great work. Recently I want to do some compiler work > that involves analyzing low level intermediate representation. I &

Re: Dumping Low Level Intermediate Representation for Another Compiler

2005-03-28 Thread Marcin Dalecki
On 2005-03-29, at 05:59, Wei Qin wrote: Hello GCC developers, I am avid user of gcc and have 5 cross-gcc's installed on my machine. Thanks for your great work. Recently I want to do some compiler work that involves analyzing low level intermediate representation. I thought about using res

Dumping Low Level Intermediate Representation for Another Compiler

2005-03-28 Thread Wei Qin
Hello GCC developers, I am avid user of gcc and have 5 cross-gcc's installed on my machine. Thanks for your great work. Recently I want to do some compiler work that involves analyzing low level intermediate representation. I thought about using research compilers such as SUIF or SUIF I