home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!spool.mu.edu!agate!agate!usenet
- From: andy@cs.caltech.edu (Andy Fyfe)
- Newsgroups: comp.archives
- Subject: [comp.sys.3b1] gcc 1.41 again
- Followup-To: comp.sys.3b1
- Date: 9 Sep 1992 08:11:26 GMT
- Organization: California Institute of Technology
- Lines: 73
- Approved: adam@soda.berkeley.edu
- Distribution: world
- Message-ID: <18kbjeINNovc@agate.berkeley.edu>
- References: <1992Sep7.210038.9599@cco.caltech.edu>
- NNTP-Posting-Host: soda.berkeley.edu
- X-Original-Newsgroups: comp.sys.3b1
- X-Original-Date: Mon, 7 Sep 1992 21:00:38 GMT
-
- Archive-name: auto/comp.sys.3b1/gcc-1-41-again
-
- I added the missing bits to the gcc-1.41 subdictory of pub/3b1 on
- ftp.cs.caltech.edu. You still have to link the binaries yourself,
- but you now have everything needed to make gcc 1.41. Convergent
- users may be able to take advantage of this as well.
-
- Why use gcc 1.41 rather than 2.2.2? For one, cc1 is about 225k
- smaller (at least the 1.40 version was), and the 3b1 is memory-
- limited. Gcc 1.41 probably is more stable; gcc 1.x is being
- maintained but not extended. Gcc 2.x is beta software, and is
- being enhanced (though it seems that RISC machines are the ones
- that really benefit).
-
- I use gcc 2.2.2, but as a cross-compiler running on a Sparcstation.
- I rarely compile anything on my 3b1 these days.
-
- Just so that you know what would be involved, here are the instruction
- from the README file.
-
- ----------------------------------------------------------------------
-
- First, you need to make libgcc.a. This is because gcc 1.41 was cross-
- compiled with gcc 2.2.2. Libgcc.a in gcc 2.2.2 corresponds to gnulib
- in gcc 1.41. You *must* use "cc" below, not "gcc".
-
- gnutar Zxf libgcc1.tar.Z
- cc -O -c *.c
- gnutar Zxf libgcc2.tar.Z
- ar cr libgcc.a *.o
- rm *.o *.c
-
- Now, the gcc binaries. You can link these however you like, for example,
- with "ld" directly, "shcc", "gcc -shlib".
-
- gnutar Zxf cpp.tar.Z
- cc -o gcc-cpp *.o libgcc.a
- rm *.o
- gnutar Zxf cc1.tar.Z
- cc -o gcc-cc1 *.o libgcc.a
- rm *.o
- gnutar Zxf as.tar.Z
- cc -o gcc-as *.o libgcc.a
- rm *.o
- gnutar Zxf gcc.tar.Z
- cc -o gcc *.o libgcc.a.
- rm *.o
-
- Finally, make gnulib. The files in gnulib1, like those in libgcc1, must
- be compiled with cc. Those in gnulib2 can be compiled with gcc.
-
- gnutar Zxf gnulib1.tar.Z
- cc -O -c *.c
- rm *.c
- gnutar Zxf gnulib2.tar.Z
- ./gcc -B./ -O -fstrength-reduce -c *.c
- rm *.c
- ar cr gcc-gnulib *.o
- rm *.o
-
- All that's left is to install everything.
-
- cp gcc-cpp gcc-cc1 gcc-as gcc-gnulib /usr/local/lib/
- cp gcc /usr/local/bin/
- gnutar Zxf include.tar.Z
- mkdir /usr/local/lib/gcc-include
- cp *.h /usr/local/lib/gcc-include
- rm *.h
-
- ----------------------------------------------------------------------
-
- Andy Fyfe andy@cs.caltech.edu
-
-