Skip to contentSkip to conversation

EGCS on MIPS

DISCUSSION [email protected] 3 participants 4 messages Apr 4, 1998 – Apr 5, 1998 1 message not in the archive MIPS

lore
Share & tools
lore
#0 lore raw

Hi all,

people keep asking me about egcs / gcc 2.8.x for Linux/MIPS. Before I even attempt to work on that I'd like to know if anybody has attempted to use one of these compilers on IRIX or another MIPS operating system. Experiences, especially reliability? As I understand the problems people have with these compilers on their Linux/i386 machines are only mostly caused by the Intel backend?

Thanks,

Ralf

#1 lore raw
Quoted 6 lines · On Sat, Apr 04, 1998 at 12:05:54PM +0200, [email protected] wrote:

people keep asking me about egcs / gcc 2.8.x for Linux/MIPS. Before I even attempt to work on that I'd like to know if anybody has attempted to use one of these compilers on IRIX or another MIPS operating system. Experiences, especially reliability? As I understand the problems people have with these compilers on their Linux/i386 machines are only mostly caused by the Intel backend?

I use it everyday. I only have problems when trying to compile with -g. The compilers segfaults from time to time. Apart from that, it works nicely.

A bad point for linux/mips is that the generated code is n32/64.

OG.

#4 lore raw
In reply to [email protected]
Quoted 3 lines

Experiences, especially reliability? As I understand the problems people have with these compilers on their Linux/i386 machines are only mostly caused by the Intel backend?

For 2.8.0 there is a catalog of problems caused by both back and front end bugs. For 2.8.1 it appears to be a case of bugs in the Linux code where gcc 2.8 was able to do some exciting optimisations we really didn't want.

2.8.0 has cases where it doesn't properly honour volatile, 2.8.1 appears to behave

#3 lore raw
In reply to a message not in the archive
Quoted 3 lines · Dominic Sweetman

It's possible that Linux would be better served by the more steady approach favoured by Richard Stallman, but then that's why 2.8 has been such a long time coming.

Alot of the Linux comunity are pretty upset with the pace at which GCC 2.8 (and the FSF) is advancing. Several people asked me for EGCS but _nobody_ for GCC 2.8. Guess that voting has a clear result ...

Quoted 5 lines
Quoted 1 line

A bad point for linux/mips is that the generated code is n32/64.

Firstly, that's an option; the EGCS compiler supports many options, including Linux' current standard (best called o32, probably, following SGI standards.)

Agreed. There's a couple of comments in the EGCS source however which say that certain o32 things are broken. I didn't research details but I think those comments only apply to IRIX6 and so far I however I didn't run into any trouble with the o32 support of EGCS. Which might mean not to much since the EGCS 1.0.2 port for Linux/MIPS is now 20 hours or so old.

Quoted 4 lines

Secondly, maybe that's a good thing; at a meeting at MIPS embedded compiler suppliers agreed informally that we should offer n32 as a new standard for demanding applications. You may like to think about migrating Linux/MIPS to something other than o32/ECOFF.

O32 is an implication of being R3000 friendly. If 32 bit microprocessors would vanish from earth's surface next night I'd immediately go for n32 or 64.

The only binaries which we in other formats than ELF are bootloaders etc. I think a.out was burried over two years ago and we never had any ECOFF userland.

Ralf