home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / misc / discuss / 4022 < prev    next >
Encoding:
Text File  |  1992-12-17  |  2.0 KB  |  42 lines

  1. Newsgroups: gnu.misc.discuss
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!jimlynch
  3. From: jimlynch@netcom.com (Jim Lynch)
  4. Subject: Re: What is what in the GNUniverse?
  5. Message-ID: <1992Dec17.060515.22688@netcom.com>
  6. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  7. References: <HANCHE.92Dec16172632@ptolemy.ams.sunysb.edu>
  8. Distribution: gnu
  9. Date: Thu, 17 Dec 1992 06:05:15 GMT
  10. Lines: 30
  11.  
  12. Harald,
  13.  
  14. You like LISP? Get gcc-2.3.2, un Z it, un tar it, print the INSTALL file,
  15. configure for your machine (and use '--prefix=$HOME' unless you have your own
  16. machine) and do a 'make LANGUAGES=c', then keep going until you get it
  17. installed... now, you can compile the rest of GNU... Check out 'Using and
  18. Porting GNU CC' (available from the nearest 4-year university) and note how
  19. the descriptions of machine instructions look like LISP... To see more, print
  20. a copy of your-machine.md and your-machine.h in the gcc-2.3.2/config directory.
  21.  
  22. At this point, you have a compiler that is one of the better ones in the unix
  23. world (and probably outside as well) which is (relatively) easily ported to
  24. other architectures (because of its pattern table-driven code generator or
  25. 'back end' as it's called) and is also (relatively) easy to design the language
  26. that it compiles. It is also highly configurable, allowing one to set the
  27. number of bits for each basic data type, among a large array of other config
  28. options.
  29.  
  30. Once you compile the compiler using the compiler that came with your machine,
  31. you compile the compiler again using itself. If you're debugging some changes
  32. you made, you might want to compile the compiler with itself one more time and
  33. compare the object files byte-by-byte. All this functionality is in the make 
  34. file and the 'configure' file.
  35.  
  36. The compiler has about 12-15 optimization phases; when you have them all turned
  37. on, things are loow... Also, once you're hooked on playing with compiler
  38. innards, it's likely to take half your life...
  39.  
  40. This text CopyLeft 1992 by Jim Lynch.
  41.  
  42.