This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Newbie to creating front ends to gcc
- To: gcc at gcc dot gnu dot org
- Subject: Re: Newbie to creating front ends to gcc
- From: Tim Josling <tej at melbpc dot org dot au>
- Date: Wed, 18 Jul 2001 05:43:39 +1000
- Organization: Melbourne PC User Group
Also you can download this, which is a toy language as simplified
as possible that tries to demonstrate in as uncluttered a manner
as possible how to interface into the tree stuff. I will be
submitting it as a formal patch to gcc soon.
It does not exercise all of the tree interfaces (notably structs
and unions are missing), but it shoudl get you started. And it is
complete - ready to load into the gcc and go, with all the
makefile fragments, spec files etc.
http://cobolforgcc.sourceforge.net/butree.tgz
Tim Josling
>
> On 15-Jul-2001, David Henningsson <a@davidh.df.lth.se> wrote:
> > Right now I'm trying to understand that tree code.
> >
> > I think I need a simple example of how to create a tree.
>
> See <http://gcc.gnu.org/readings.html>,
> in particular "Example and Toy compilers for current snapshot".
>
> See also the "Writing a Compiler Front End" chapter of
> "Using, Maintaining and Enhancing COBOL for the GNU Compiler
> Collection (GCC)".
>
> > I'm running GCC 2.95.3 at the moment as that is what goes with DJGPP.
>
> That is quite out-of-date with respect to current sources, unfortunately.
> To save yourself effort, I'd strongly recommend using GCC 3.0 or a recent
> development snapshot.
>
> If you're stuck with using Windows, that may make things a little more
> difficult. I don't know whether 3.0 or recent development snapshots
> work with DJGPP, but I think they probably do work with Cygwin.