🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54382

Re: gcc and g++ on DEC/MIPS + ultrix 4.0?

#54382
From: Per Bothner
Date: Mon, 19 Nov 1990 17:32
30 lines
2339 bytes
A number of people (myself including) have gotten gcc and g++
running on DECstations. There are couple of bugs, at least
with g++. One is that a non-inlined methods (virtual or not)
cannot return structures. (This is because gcc wants to use
the first parameter register for the address of the result,
while g++ wants to use it for the 'this' pointer. What should
happen is that the first shold be used for the result address,
and the second for the 'this' pointer, but (the machine-
independent part of) gcc isn't really set up to handle that for
architectures that pass parameters in registers. This may be
fixed in gcc-2.0.) Another problem I experienced
was that "i += f(x)" should sometimes fail to update 'i'.
I've managed to kludge around around these problems, and use
gcc and g++ productively on a near-daily basis.

Another problem is that debugging isn't supported very well.
Michael Meissner (who did most of the mips port) has a kludge for
emitting symbol table support, but it won't work for g++ (because
of the "inventive" mips symbol table format). Peter Ham
has a version of g++ that emits debuggable code, but I
haven't tried it, and it seems to be based on old versions
of the software. I believe there are people actively working
on the solving the debuggability problem(s).

I have g++ version 1.37.2 alpha 2 and gcc version 1.37.91.
I suspect most of the problems will be solved when gdb-4.0
and gcc-2.0 come out, or soon thereafter - in a month or four...
-- 
	--Per Bothner
bothner@cs.wisc.edu Computer Sciences Dept, U. of Wisconsin-Madison
Technical Details
Message-ID: <11756@spool.cs.wisc.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!usc!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!sevenlayer.cs.wisc.edu!bothner
References: <9011120832.AA27028@nadia.ircam.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,80078f90e871babd,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-11-19 09:32:09 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!apple!usc!zaphod.mps.ohio-state.edu!uwm.edu!uwvax!sevenlayer.cs.wisc.edu!bothner
From: bothner@sevenlayer.cs.wisc.edu (Per Bothner)
Newsgroups: gnu.gcc.help
Subject: Re: gcc and g++ on DEC/MIPS + ultrix 4.0?
Message-ID: <11756@spool.cs.wisc.edu>
Date: 19 Nov 90 17:32:09 GMT
References: <9011120832.AA27028@nadia.ircam.fr>
Sender: news@spool.cs.wisc.edu
Reply-To: bothner@sevenlayer.cs.wisc.edu (Per Bothner)
Distribution: gnu
Organization: University of Wisconsin--Madison
Lines: 30
Posted: Mon Nov 19 18:32:09 1990