[GCC-XML]gcc2xml and macros

Sebastien.deMentendeHorne@electrabel.com Sebastien.deMentendeHorne@electrabel.com
Mon, 6 May 2002 18:15:41 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1F519.4498B2D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,
=20
I found the project after looking for exactly what it is : an easy way =
to
dig in the code in a programmatic way.
=20
I have some questions at first sight (it is still compiling) :=20
 - What is the link with  <http://introspector.sourceforge.net/>
http://introspector.sourceforge.net/, if any ?
 - is there a xml -> gcc frontend already built ?
 - is it possible to introduce some "new macros" contructions in C/C++ =
that
gccxml will leave untouched and that could be interpreted on an XML
processor ?
=20
In fact, I would like to replace those difficult templates with a nicer
notation that will be processed in an XML processor.
The general flow of the compilation process for the C/C++ newly =
macroified
would be:
    C/C++ source with new macros=20
        \--(gccxml)--> XML code with macros
            \--(xml processor)--> XML code with macros processed=20
                \--(? xml2gcc ?)--> real code
=20
As XML is real close to Lisp/Scheme way of thinking (list processing) =
and
that Lisp/Scheme macros are much more powerwul (expresive), I think =
this
approach can be interesting.
=20
Any feedback is welcome !
=20

S=E9bastien de Menten               |    ELECTRABEL=20
Tel:  ++32 10 48 51 76            |    Quantitative Analysis,=20
Fax:  ++32 10 48 51 09            |    Place de l'universit=E9, 16, =
4=E8me =E9tage

Gsm:  ++32 478 789 444            |    B-1348 Louvain-la-Neuve, BELGIUM =



------_=_NextPart_001_01C1F519.4498B2D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D683505115-06052002>Hi=20
all,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D683505115-06052002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D683505115-06052002>I =
found the project=20
after looking for exactly what it is : an easy way to dig in the code =
in a=20
programmatic way.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D683505115-06052002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D683505115-06052002>I =
have some=20
questions at first sight (it is still compiling) : </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D683505115-06052002>&nbsp;- What is the=20
link with </SPAN></FONT><A =
href=3D"http://introspector.sourceforge.net/"><FONT=20
face=3DArial =
size=3D2>http://introspector.sourceforge.net/</FONT></A><FONT=20
face=3DArial><FONT size=3D2>,<SPAN class=3D683505115-06052002> if any=20
?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D683505115-06052002>&nbsp;- is=20
there a xml -&gt; gcc frontend already built =
?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D683505115-06052002>&nbsp;- is it=20
possible to introduce some "new macros" contructions in C/C++ that =
gccxml will=20
leave untouched and that could be interpreted on an XML processor=20
?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D683505115-06052002></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D683505115-06052002>In fact, I=20
would like to replace those difficult templates with a nicer notation =
that will=20
be processed in an XML processor.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D683505115-06052002>The general=20
flow of the compilation process for the C/C++ newly macroified would=20
be:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D683505115-06052002>&nbsp;&nbsp;&nbsp; C/C++ source with new =
macros=20
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D683505115-06052002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\--(gccxml)--&gt; XML code with&nbsp;macros</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D683505115-06052002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;\--(xml=20
processor)--&gt; XML code with macros processed =
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D683505115-06052002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
\--(? xml2gcc ?)--&gt; real code</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D683505115-06052002><FONT face=3DArial size=3D2>As =
XML is real close=20
to Lisp/Scheme way of thinking (list processing) and that Lisp/Scheme =
macros are=20
much more powerwul (expresive), I think this approach can be=20
interesting.</FONT></SPAN></DIV>
<DIV><SPAN class=3D683505115-06052002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D683505115-06052002><FONT face=3DArial size=3D2>Any =
feedback is=20
welcome !</FONT></SPAN></DIV>
<DIV><SPAN class=3D683505115-06052002><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<P><FONT face=3D"Courier New" size=3D2>S=E9bastien de=20
Menten&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;=20
|&nbsp;&nbsp;&nbsp; ELECTRABEL</FONT> <BR><FONT face=3D"Courier New"=20
size=3D2>Tel:&nbsp; ++32 10 48 51=20
76&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
|&nbsp;&nbsp;&nbsp; Quantitative Analysis, </FONT><BR><FONT =
face=3D"Courier New"=20
size=3D2>Fax:&nbsp; ++32 10 48 51=20
09&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
|&nbsp;&nbsp;&nbsp; Place de l'universit=E9, 16, 4=E8me =E9tage</FONT> =
<BR><FONT=20
face=3D"Courier New" size=3D2>Gsm:&nbsp; ++32 478 789=20
444&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
|&nbsp;&nbsp;&nbsp; B-1348 Louvain-la-Neuve, BELGIUM</FONT> =
</P></BODY></HTML>

------_=_NextPart_001_01C1F519.4498B2D0--