Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Joerg Bruehe <joerg@sql.de>
To: axp-list@redhat.com
Subject: Re: "taso" compiler option (was: Open Office)
Date: Wed, 09 Oct 2002 18:41:17 +0200	[thread overview]
Message-ID: <3DA45C2D.25B62136@sql.de> (raw)
In-Reply-To: 874rbvzlgx.fsf@student.uni-tuebingen.de

Hi!

Falk Hueffner wrote:
> 
> Michal Jaegermann <michal@ellpspace.math.ualberta.ca> writes:
> 
> > On Wed, Oct 09, 2002 at 11:23:04AM +0200, Joerg Bruehe wrote:
> > >
> > > AFAIK, "-taso" (and "-xtaso") are options of the Tru64 C compiler
> > > (ex Digital, ex Compaq, now HP), I never heard about them for GCC.
> >
> > Actually, depending on a version of binutils, you may have '-taso' with
> > Linux as well.  Possibly this option may need to be passed down with
> > '-Wa,...' and '-Wl,...'.  I do not think that this was ever widely used
> > and well tested.  I am also not sure how this works with libraries which
> > would expect a full address range.  Things are mapped that way that
> > upper address bits are always insignificant?

My impression is that Digital implemented this feature to ease 
the porting of badly designed code to Tru64. 
I had to use it with code that assumed the identical size of 
32 bit for "int", long", and "void *" - until I had fixed it. 
However, this design was so deep within the code that I still 
had to use a C "union" to store a pointer in two consecutive 
elements of an "int" array. (I check the sizes to ensure it fits.) 
Bad and ugly, but easier than changing the array (to "long []") 
or even the whole design.

Using "-taso" masked the design fault completely: Pointers are 
stored in 64 bit (important when passed to modules compiled 
without this option), but on copy to/from "int" (32 bit) they 
remain valid.

> 
> I don't think that's possible... rather it's mapped into the lower 31
> bits and the compiler makes sure the upper ones are clear (31 bits so
> ldl/addl won't fill the upper bits with the sign extension). For the
> latter, ccc has a -xtaso_short switch (or so), which makes
> sizeof(void*) 4 and emits appropriate instructions. This would
> probably not too hard to be to add to gcc (but I won't do it, people
> should rather fix their broken code).

I fully agree, but depending on the code's complexity this may be 
hard and difficult.

Friedrich von Schiller has some lines in his "Wallenstein" drama: 
     This is the curse of the evil deed, 
     that, propagating itself, 
     it must permanently give birth to new evil. 
(German: Das eben ist der Fluch der boesen Tat, 
         dass sie, sich selbst fortzeugend, 
         staendig neues Boeses muss gebaeren. 
Quoted and translated from memory.) This quote fits much too often!

Regards, 
Joerg Bruehe

-- 
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
     (speaking only for himself)
mailto: joerg@sql.de




      reply	other threads:[~2002-10-09 16:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-09  2:44 Open Office Robert M. Riches Jr.
2002-10-09  9:23 ` Joerg Bruehe
2002-10-09 15:07   ` Michal Jaegermann
2002-10-09 15:21     ` Falk Hueffner
2002-10-09 16:41       ` Joerg Bruehe [this message]
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