* GNU C++ available for alpha/osf1?
@ 1994-05-10 22:19 chandoni
1994-05-11 22:40 ` chandoni
0 siblings, 1 reply; 4+ messages in thread
From: chandoni @ 1994-05-10 22:19 UTC (permalink / raw)
Is there a working version of GNU C++ for the alpha? According to the
readme in 2.5.8, gcc only works on C, for now (until 2.6). Are there
patches somewhere (like the patches for emacs 19.22) that will
give me a working C++ in this version?
Thanks,
JMC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU C++ available for alpha/osf1?
1994-05-10 22:19 GNU C++ available for alpha/osf1? chandoni
@ 1994-05-11 22:40 ` chandoni
1994-05-13 21:46 ` Tony Coates
1994-05-14 4:23 ` Jody Goldberg
0 siblings, 2 replies; 4+ messages in thread
From: chandoni @ 1994-05-11 22:40 UTC (permalink / raw)
I wrote:
>Is there a working version of GNU C++ for the alpha? According to the
>readme in 2.5.8, gcc only works on C, for now (until 2.6).
Actually, 2.5.8 seems to work fine as a C++ compiler; it's libg++ that
isn't yet supported. My own classes work fine, as long as they
use stdio instead of iostream (and other library functions).
If anybody has gotten libg++ to work, let me know!
JMC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GNU C++ available for alpha/osf1?
1994-05-11 22:40 ` chandoni
@ 1994-05-13 21:46 ` Tony Coates
1994-05-14 4:23 ` Jody Goldberg
1 sibling, 0 replies; 4+ messages in thread
From: Tony Coates @ 1994-05-13 21:46 UTC (permalink / raw)
In article <1994May11.184037.32360@husc14.harvard.edu>
chandoni@husc.harvard.edu writes:
I wrote:
>Is there a working version of GNU C++ for the alpha? According to the
>readme in 2.5.8, gcc only works on C, for now (until 2.6).
Actually, 2.5.8 seems to work fine as a C++ compiler; it's libg++ that
isn't yet supported. My own classes work fine, as long as they
use stdio instead of iostream (and other library functions).
If anybody has gotten libg++ to work, let me know!
As I understand it, g++ does *NOT* work on the AXP with version 2.5.8.
It is hoped that version 2.6 will work on the AXP/Alpha. It often
*looks* like it works, and indeed some of the code may be correct, but
other times you can get very weird errors that are simply due to the
compiler not working correctly. So it isn't just libg++ which is at
fault, though I have seen it said that some of libg++'s assumptions of
sizeof(int) = sizeof(void*) break down on the AXP.
Cheers,
Tony.
--
_____________________________________________________________________________
A.B.Coates, Dept. of Physics,
The University of Queensland QLD 4072 Australia.
Email: coates@physics.uq.oz.au
Phone: (07/+617) 365-3424 Fax: (07/+617) 365-1242
Disclaimer: The University is ignorant of my
opinions, let alone guilty ...
_____________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: GNU C++ available for alpha/osf1?
1994-05-11 22:40 ` chandoni
1994-05-13 21:46 ` Tony Coates
@ 1994-05-14 4:23 ` Jody Goldberg
1 sibling, 0 replies; 4+ messages in thread
From: Jody Goldberg @ 1994-05-14 4:23 UTC (permalink / raw)
chandoni@husc.harvard.edu writes:
>I wrote:
>>Is there a working version of GNU C++ for the alpha? According to the
>>readme in 2.5.8, gcc only works on C, for now (until 2.6).
>Actually, 2.5.8 seems to work fine as a C++ compiler; it's libg++ that
>isn't yet supported. My own classes work fine, as long as they
>use stdio instead of iostream (and other library functions).
>If anybody has gotten libg++ to work, let me know!
Both g++ and libg++ are functional on alphas. There is a major
bug in each that can be patched fairly easily.
gcc-2.5.8 - In one of the cp- files there is a comment about 'this
breaking vtables on the alpha'. Grep for it and change the
use of integer_type -> ptr_diff_type or something of the appropriate
size.
libg++-2.5.3 - floatconv.c will core when handling floats. Search for
the definitions of the macros word0, word1. Change the use of
long -> int. This seems to ameliorate things.
The remaining alpha specific bugs are avoidable and are beyond my power
to rectify.
- Don't bother trying to optimize. Missing symbols will result
- Always link staticly or you get complaints at run time
that abort has relocation information unexpectedly.
- Bad code for
String * tmp = new bob[size];
for(size_t i = 4 ; ....
i and tmp co-exist
- internal compiler error for dynamic arrays of objects with ctors
- allocation of zero sized arrays causes corage
Good Luck
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jody@algorithmics.com | GO BACK AND CHANGE IT! Expecting to get
Fax: (416)-777-0767 | a design right initially is foolhardy.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-05-14 4:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-05-10 22:19 GNU C++ available for alpha/osf1? chandoni
1994-05-11 22:40 ` chandoni
1994-05-13 21:46 ` Tony Coates
1994-05-14 4:23 ` Jody Goldberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox