dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TreeCC for the GCC (was [DotGNU]IRC Meeting Summary : 2002-10-19)


From: James Michael DuPont
Subject: Re: TreeCC for the GCC (was [DotGNU]IRC Meeting Summary : 2002-10-19)
Date: Sun, 20 Oct 2002 03:42:52 -0700 (PDT)

--- Gopal V <address@hidden> wrote:
> 
> IRC Meeting -- 2002-10-19
> -------------------------

One of the things that came out of the meeting that was important for
me is a starting point on the gcc/treecc interface.

I have started on the TreeCCGenerator.pm as part of the introspector,
based on the JavaGenerator.pm I have had the following problems.

1. dependancies, I do not yet have a full topological sort of the
nodetypes dependancies worked out, that means that I cannot put the
files (yet) into the right order for including and compilation.

But the treecc seems to output the resulting .cs files
with the object in the right order...

This is a problem , because there does not seem to be an include
blocker system to ifdef X, define X, elseif the blocks of code.
The tree still produces the output and there are not any cycles, so it
does not matter.

So, the next step is to sort the nodes and output just one DAG graph of
all the include, I need to secondguess the includes from treecc.


2. interfaces, multiple inheritance.
I use interfaces to mix in attributes and methods into the nodes,

for example 

%node node_integer_cst  node_const 
the node_integer_cst is a node_const, but 
this supports the interface : node_Ityped

I have just added in the field   
node_base type; 
into the node to point to the type. And unfortunally, it points to a
node_base and not the node_type. That will be fixed later.

But the methods are turned off for now.

Summary: 

You can find a snapshot of the current files on
http://introspector.sourceforge.net/dotgnu/introspect_treecc.tgz

I think the way to go with this is to get the treecc stuff generated,
the I hope there is someway to use the c interfaces to talk to the c#
interfaces. Right now I guess the c and c# interfaces are excluding
each other, it would be great if I could fill out the c interface and
automagically feed that to the c# interface.

Of course, this needs to be compiled, and documented and all that.

My current plan is to modify the tree dumper to not output the XML from
the gcc, but to fill out the new treecc generated structures, that plus
the treecc binding will provide an interesting callback system for
testing high speed access to the gcc nodes.

Also, the inclusion of a native pointer to the original tree structure
will allow random access traversal, not just callbacks.

I hope you find this interested, it is only work in progress, but would
be greatful for any feedback and ideas you have.

mike

=====
James Michael DuPont
http://introspector.sourceforge.net/

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]