home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!umn.edu!csus.edu!netcom.com!jimlynch
- From: jimlynch@netcom.com (Jim Lynch)
- Subject: Re: GNU C++
- Message-ID: <1993Jan2.170230.9954@netcom.com>
- Organization: Netcom Online Communications Services (408-241-9760 login: guest)
- References: <1992Dec23.230318.26576@IRO.UMontreal.CA>
- Date: Sat, 2 Jan 1993 17:02:30 GMT
- Lines: 39
-
- I have little personal experience with gcc so far, however I have successfully
- recompiled it on my unix dialup.
-
- I am in the process of learning C++, and I intend to do so using gcc.
-
- Gcc has a table-driven front end (for language specification) and back end
- (for machine, base type and alignment specification). What this means is that
- it's possible to make gcc compile on machines that it hasn't met yet. (this
- works best for some particular class of CPUs, one expectation is lots of
- general-purpose registers.) It also means that it's possible to make gcc compile
- for a new language it's never met before. The way to do either language or
- machine specification is to write the tables that describe them.
-
- I personally like this: it means I could conceivably move a very high-quality
- optimizing compiler to any machine I want, and that I could write a new language
- and (once working) it would automatically run exactly the same on each and every
- machine that gcc runs on.
-
- I get to participate in the process of debugging the compiler. I like that
- because I learn in the process. New versions are being worked on as we speak,
- so it's current.
-
- The only drawback is that documentation is a shade thin. It took me a month or
- more before I successfully compiled the source of the compiler on my unix
- dialup.
-
- A major benefit is the source code is freely available to whoever wants it.
-
- The makers of gcc tried to make the command line options as close as possible
- to unix cc, so if you've dealt with cc, you can use gcc.
-
- I have a copy of the reference work, "The C++ Programming Language" which has
- a (sortof readible) tutorial section. Since it's the definitive reference (and
- since I have experience in compilers and compiler-compilers), it's very useful
- because it offers opportunities to peek into the mind of the language's
- designer.
-
- I haven't gotten very far yet, but every example/excercise has worked on gcc.
-
-