home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18638 < prev    next >
Encoding:
Text File  |  1993-01-02  |  2.3 KB  |  50 lines

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