Groups | Search | Server Info | Login | Register


Groups > comp.compilers > #254

Re: Need an interesting topic for an undergraduate project on Compilers

From Philip Herron <redbrain@gcc.gnu.org>
Newsgroups comp.compilers
Subject Re: Need an interesting topic for an undergraduate project on Compilers
Date 2011-09-03 06:43 +0100
Organization Compilers Central
Message-ID <11-09-004@comp.compilers> (permalink)
References <11-08-006@comp.compilers> <11-08-007@comp.compilers> <11-08-029@comp.compilers> <11-08-030@comp.compilers> <11-09-003@comp.compilers>

Show all headers | View raw


I would recommend the experience of implementing a front-end in GCC
its a great area to start implementing a language and you can
concentrate on more specificity what you want to do. We are really
starting to get a lot of cool documentation but we have yet to try and
get it merged into mainline but you can contact us through the mailing
list for the links to that. Gccgo/gfortran are really good reference
front-ends my front-end gccpy is quite complicated.

But if you've never written a compiler from scratch i would recommend
spending like a week just implementing some really basic language and
outputting to some target code to really get a feel in the nitty
gritty what it is to work with compilers otherwise i dont think you
would really understand why certain aspects work the way they do.

When it comes to "new and innovative" i think you need to work on
compilers for a bit to understand what that is on your own. Since here
be dragons... lol.

As for interesting undergrad project you could either checkout my
project gccpy or gccgo or PHC (php compiler Paul Biggar's phd is a
good read for this i think he floats on this list) or Parrot. I think
are all interesting projects to possibly work on and have a lot of
scope. The best part about these is you could sit at a more high-level
rather than trying to delve into the depths of code-gen in llvm or gcc
which is not a task for the faint hearted trying to find some new
innovative algorithm there.

As for the backend outputting to C thread here, i dont recommend this
as i personally believe it will push you to produce bad IL and
middle-end code because you will rely too much on C. And in the end if
you want to do more interesting things you may be a little too reliant
on C and thus your limited by C. Though outputting C does have its
advantage in that you can easily output target code and makes your
compiler quite simple but i don't think it gives the full picture.

--Phil

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Need an interesting topic for an undergraduate project on Compilers amit karmakar <amit.codename13@gmail.com> - 2011-08-06 10:28 -0700
  Re: Need an interesting topic for an undergraduate project on Compilers Volker Birk <bumens@dingens.org> - 2011-08-06 19:08 +0000
    Re: Need an interesting topic for an undergraduate project on Compilers jgk@panix.com (Joe keane) - 2011-08-27 15:30 +0000
      Re: Need an interesting topic for an undergraduate project on Compilers BGB <cr88192@hotmail.com> - 2011-08-31 10:41 -0700
        Re: Need an interesting topic for an undergraduate project on Compilers BGB <cr88192@hotmail.com> - 2011-09-01 03:37 -0700
        Re: Need an interesting topic for an undergraduate project on Compilers George Neuner <gneuner2@comcast.net> - 2011-08-31 21:01 -0400
          Re: Need an interesting topic for an undergraduate project on Compilers Philip Herron <redbrain@gcc.gnu.org> - 2011-09-03 06:43 +0100
            Re: Need an interesting topic for an undergraduate project on Compilers "C. Bergström" <cbergstrom@pathscale.com> - 2011-09-03 15:38 +0700
            Re: Need an interesting topic for an undergraduate project on Compilers George Neuner <gneuner2@comcast.net> - 2011-09-03 16:00 -0400
      Re: Need an interesting topic for an undergraduate project on Compilers torbenm@diku.dk (Torben Ægidius Mogensen) - 2011-08-31 11:15 +0200
      Re: Need an interesting topic for an undergraduate project on Compilers Volker Birk <bumens@dingens.org> - 2011-08-31 10:02 +0000
  Re: Need an interesting topic for an undergraduate project on Compilers BGB <cr88192@hotmail.com> - 2011-08-06 14:10 -0700
  Re: Need an interesting topic for an undergraduate project on Compilers "BartC" <bc@freeuk.com> - 2011-08-09 12:06 +0100
  Re: Need an interesting topic for an undergraduate project on Compilers Gene <gene.ressler@gmail.com> - 2011-08-10 00:53 -0700
  Re: Need an interesting topic for an undergraduate project on Compilers Hans Aberg <haberg-news@telia.com> - 2011-08-10 23:56 +0200
  Re: Need an interesting topic for an undergraduate project on Compilers tm <thomas.mertes@gmx.at> - 2011-08-30 23:17 -0700
  Re: Need an interesting topic for an undergraduate project on Compilers Christophe de Dinechin <christophe.de.dinechin@gmail.com> - 2011-09-04 23:42 -0700

csiph-web