[comp.sys.sgi] HELP: gcc on a boat anchor

mp@ccvr1.ncsu.edu (Manoj Kumar Patel) (05/24/91)

Hi,
   I have a boat anchor model 3130. Has anyone installed gcc or g++ on one
of these beasties? I would realy appreciate some (ok lots of) help with this,
 
                 Thanks,
                        Manoj Patel

ceb@csli.Stanford.EDU (Charles Buckley) (05/30/91)

In article <1991May24.012423.2547@ncsu.edu> mp@ccvr1.ncsu.edu (Manoj Kumar Patel) writes:

   Hi,
      I have a boat anchor model 3130. Has anyone installed gcc or g++ on one
   of these beasties? I would realy appreciate some (ok lots of) help with this,
With lots of massaging, you can get gcc through the SGI-supplied C
compiler.  This, however, will do you not much good at all, because
the 680x0 assembler used by SGI uses a syntax which is neither MIT nor
Motorola.  What's more, I'll wager the rules for accessing
floating-point are different from the Sun 3 series, which seems to
have been the driving fouce behind the 68000 ports of gxx. 

It will require coming up with a new version of the machine-specific
files, which was so much work for a machine that is no longer sold
and soon to be no longer supported that I gave up on it.

I looked at setting up gas, but that seemed to be just as much work.

Actually, working with the 3000 series C compiler from SGI isn't so
bad, if you:
1. renounce ANSI compatibility,
2. sprinkle function prototypes liberally throughout your file
   preambles, and
3. don't use a lot of nested macros (you will run out of macro space -
   also a problem with Microsoft's DOS C compiler).