From: "Brian E.W. Wood" <beww@intac.com>
To: axp-list@redhat.com
Subject: Re: Any C++ on Alpha gfurus out there?
Date: Sat, 14 Nov 1998 12:37:09 -0500 (EST) [thread overview]
Message-ID: <XFMail.981114123709.beww@intac.com> (raw)
In-Reply-To: <19981114132051.23174.qmail@io.nu>
On 14-Nov-98 sterwill@io.nu wrote:
>
> Well, as part of the AbiWord team, I can assure you that we're doing many
> such assignment tests in the code (not good news, huh? :). In fact, the new
> toolbar framework is similar to the implementation of the menu layout
> framework.
> In short, this looks like a compiler issue on the Alpha, but without access
> to an
> Alpha (which I may have shortly if I buy one) it's hard to tell. It's
> a very legal C++ test; I'm using EGCS 1.1b with -Wall and often -pedantic
> to keep out "that which is not ANSI," but on an Intel, which is all we
> have available now.
First, much thanks to all who responded to my question. My main point is that
the code *does* run on an Intel machine but not on (at least my) Alpha, so this
list seemed an appropriate place to ask.
>
> You know, this may be completely off here, but I'm wondering if the "&&"
> is somehow not correct in ANDing the result of (wd->m_id == id) on a
> platform where the size of "wd" (pointer) is not the same size as
> "(wd->m_id == id)" (bool same as int which is != size of pointer?). Wild
> guess here. :) I would assume this possibility is very remote
> since the evaluation is essentially "if(wd){if(wd->m_id==id) {} }", but
> I haven't looked at the compiler source; it may be optimizing something
> funny.
Most problems where code runs on an Intel and not on an Alpha seem to be
related to the pointer/integer size difference so what you say may make sense.
I'm considering dropping back from egcs 1.1b to 1.0.3a to see what happens. As
you know the code is already being compiled with no optimizations.
Heinz Ulrich Stille asked whether callback_action was 32 or 64 bit, I'm not
enough of a programmer to know the answer to this.
The lack of a decent WP for the alpha platform has been a real bugaboo for me,
so I'd really like to see this problem resolved, any additional alpha-guru
suggestions are always appreciated.
---
Brian E.W. Wood beww@intac.com
next prev parent reply other threads:[~1998-11-14 17:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-13 19:10 Any C++ on Alpha gfurus out there? Brian E.W. Wood
1998-11-13 19:17 ` Nicholas Sallembian
1998-11-13 19:25 ` B. James Phillippe
1998-11-13 21:48 ` Nicholas Sallembian
1998-11-14 1:06 ` Bob McElrath
1998-11-14 13:20 ` sterwill
1998-11-14 17:37 ` Brian E.W. Wood [this message]
1998-11-13 19:26 ` Anders Hammarquist
1998-11-13 19:37 ` Heinz Ulrich Stille
1998-11-16 3:50 ` Michael J. Donahue
1998-11-16 13:15 ` Stefan Schroepfer
1998-11-16 13:45 ` Paul Tomblin
1998-11-16 14:24 ` Stefan Schroepfer
1998-11-16 14:43 ` Leo
-- strict thread matches above, loose matches on Subject: below --
1998-11-16 14:49 Leo
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox