home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / archives / 3314 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.7 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!spool.mu.edu!agate!agate!usenet
  2. From: andy@cs.caltech.edu (Andy Fyfe)
  3. Newsgroups: comp.archives
  4. Subject: [comp.sys.3b1] gcc 1.41 again
  5. Followup-To: comp.sys.3b1
  6. Date: 9 Sep 1992 08:11:26 GMT
  7. Organization: California Institute of Technology
  8. Lines: 73
  9. Approved: adam@soda.berkeley.edu
  10. Distribution: world
  11. Message-ID: <18kbjeINNovc@agate.berkeley.edu>
  12. References: <1992Sep7.210038.9599@cco.caltech.edu>
  13. NNTP-Posting-Host: soda.berkeley.edu
  14. X-Original-Newsgroups: comp.sys.3b1
  15. X-Original-Date: Mon, 7 Sep 1992 21:00:38 GMT
  16.  
  17. Archive-name: auto/comp.sys.3b1/gcc-1-41-again
  18.  
  19. I added the missing bits to the gcc-1.41 subdictory of pub/3b1 on
  20. ftp.cs.caltech.edu.  You still have to link the binaries yourself,
  21. but you now have everything needed to make gcc 1.41.  Convergent
  22. users may be able to take advantage of this as well.
  23.  
  24. Why use gcc 1.41 rather than 2.2.2?  For one, cc1 is about 225k
  25. smaller (at least the 1.40 version was), and the 3b1 is memory-
  26. limited.  Gcc 1.41 probably is more stable; gcc 1.x is being
  27. maintained but not extended.  Gcc 2.x is beta software, and is
  28. being enhanced (though it seems that RISC machines are the ones
  29. that really benefit).
  30.  
  31. I use gcc 2.2.2, but as a cross-compiler running on a Sparcstation.
  32. I rarely compile anything on my 3b1 these days.
  33.  
  34. Just so that you know what would be involved, here are the instruction
  35. from the README file.
  36.  
  37. ----------------------------------------------------------------------
  38.  
  39. First, you need to make libgcc.a.  This is because gcc 1.41 was cross-
  40. compiled with gcc 2.2.2.  Libgcc.a in gcc 2.2.2 corresponds to gnulib
  41. in gcc 1.41.  You *must* use "cc" below, not "gcc".
  42.  
  43.     gnutar Zxf libgcc1.tar.Z
  44.     cc -O -c *.c
  45.     gnutar Zxf libgcc2.tar.Z
  46.     ar cr libgcc.a *.o
  47.     rm *.o *.c
  48.  
  49. Now, the gcc binaries.  You can link these however you like, for example,
  50. with "ld" directly, "shcc", "gcc -shlib".
  51.  
  52.     gnutar Zxf cpp.tar.Z
  53.     cc -o gcc-cpp *.o libgcc.a
  54.     rm *.o
  55.     gnutar Zxf cc1.tar.Z
  56.     cc -o gcc-cc1 *.o libgcc.a
  57.     rm *.o
  58.     gnutar Zxf as.tar.Z
  59.     cc -o gcc-as *.o libgcc.a
  60.     rm *.o
  61.     gnutar Zxf gcc.tar.Z
  62.     cc -o gcc *.o libgcc.a.
  63.     rm *.o
  64.  
  65. Finally, make gnulib.  The files in gnulib1, like those in libgcc1, must
  66. be compiled with cc.  Those in gnulib2 can be compiled with gcc.
  67.  
  68.     gnutar Zxf gnulib1.tar.Z
  69.     cc -O -c *.c
  70.     rm *.c
  71.     gnutar Zxf gnulib2.tar.Z
  72.     ./gcc -B./ -O -fstrength-reduce -c *.c
  73.     rm *.c
  74.     ar cr gcc-gnulib *.o
  75.     rm *.o
  76.  
  77. All that's left is to install everything.
  78.  
  79.     cp gcc-cpp gcc-cc1 gcc-as gcc-gnulib /usr/local/lib/
  80.     cp gcc /usr/local/bin/
  81.     gnutar Zxf include.tar.Z
  82.     mkdir /usr/local/lib/gcc-include
  83.     cp *.h /usr/local/lib/gcc-include
  84.     rm *.h
  85.  
  86. ----------------------------------------------------------------------
  87.  
  88. Andy Fyfe                    andy@cs.caltech.edu
  89.  
  90.