public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "David Rasmussen" <pinkfloydhomer@yahoo.com>
To: "mike stump" <mrs@windriver.com>, <gcc@gcc.gnu.org>
Subject: Re: How to understand gcc
Date: Mon, 17 Dec 2001 16:20:00 -0000	[thread overview]
Message-ID: <00e501c18755$dd184610$d26afea9@AMADEUS2> (raw)
In-Reply-To: <200112172321.PAA11826@kankakee.wrs.com>


----- Original Message -----
From: "mike stump" <mrs@windriver.com>
To: <gcc@gcc.gnu.org>; <pinkfloydhomer@yahoo.com>
Sent: Tuesday, December 18, 2001 12:21 AM
Subject: Re: How to understand gcc


> I think you can get answers as varied as people are.  I'll just toss
> out a few quick things that can keep you busy for 5 years learning.
>
> > From: "David Rasmussen" <pinkfloydhomer@yahoo.com>
> > To: <gcc@gcc.gnu.org>
> > Date: Mon, 17 Dec 2001 23:51:19 +0100
>
> > How can I learn how gcc works?
>
> :-)  I like simple, to the point questions that have simple answers.
> Unfortunately, yours is not.
>

I know :)

> > I have taken one compiler course at my university,
>
> Good first step.  In addition, you can take advanced algorithms
> classes, theory classes...  You can also go to the library and find

I have taken a lot of courses in these areas. I study computer science and
math.

> books on compilers and languages and read them all.
>

OK, which books? Some are better than others, I gather. "Modern Compiler
Implementation in ML" is not a good book, as aren't the others the author
has done, for other implementation languages.

> > and I own the "Dragon book"
>
> I'd recommend reading and understanding it, if you haven't yet.  :-)
>

I have read and understood it. Of course, reading this book again wouldn't
hurt.

> > But really, I would like to have some sort of general understanding
> > about the design of gcc,
>
> You didn't mention if you had read the gcc manual, see our web site,
> under documentation, and manual.  If you have not, you should.  After
> that, please read the comments in the code, after that please read the
> code.  After that, try fixing 100 bugs or doing a port.  Your
> understanding will improve when trying to fix bugs or while doing a
> port.
>

I haven't done all of those things. Things for me to do... :)

> Also helpful, write an interpreter and compiler from the ground up.
>

I have done that. In fact I have written a couple for assignments in various
courses, but the results were quite "messy". I would like to have a book
that I could read and do excercises from, that would help me build a good
compiler with a nice design.

> Lather, rinse, repeat.

:)

/David

  reply	other threads:[~2001-12-17 23:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-17 15:46 mike stump
2001-12-17 16:20 ` David Rasmussen [this message]
2001-12-18  2:59 ` Axel Kittenberger
2001-12-18 15:03   ` Toon Moene
2001-12-18 15:39     ` Neil Booth
2001-12-18 23:27     ` Axel Kittenberger
  -- strict thread matches above, loose matches on Subject: below --
2001-12-18 17:32 mike stump
2001-12-17 15:01 David Rasmussen
2001-12-17 15:05 ` Neil Booth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00e501c18755$dd184610$d26afea9@AMADEUS2' \
    --to=pinkfloydhomer@yahoo.com \
    --cc=gcc@gcc.gnu.org \
    --cc=mrs@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).