* Re: Open Office.
@ 2002-10-09 2:44 Robert M. Riches Jr.
2002-10-09 9:23 ` Joerg Bruehe
0 siblings, 1 reply; 5+ messages in thread
From: Robert M. Riches Jr. @ 2002-10-09 2:44 UTC (permalink / raw)
To: axp-list
> From: Alvin Starr <alvin@iplink.net>
> Date: Tue, 08 Oct 2002 21:16:38 -0400
>
> I noticed that RH8.0 has build an open-office RPM.
>
> does gcc have a 32 bit address compile and link option?
>
> Just a silly thought but this may be a way around the problems of no
> open office. Since all the ugly part of open office building is handled
> in the RPM.
At least on RH7.1 (and its ancestors), there is a -taso option
that handles most things to sidestep non-64-bit-clean code.
The other thing that is sometimes needed is the personality()
system call. IIRC, I used PER_LINUX_32BIT to build Squeak on
RH6.1 or 7.0 many nearly two years ago. (Squeak is the _MOST_
non-64-bit-clean program in existence. Every object reference
in the Smalltalk object space is stuffed into 32 bits.)
Good luck.
Robert Riches
rm.riches@verizon.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Open Office.
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
0 siblings, 1 reply; 5+ messages in thread
From: Joerg Bruehe @ 2002-10-09 9:23 UTC (permalink / raw)
To: axp-list
Hi!
"Robert M. Riches Jr." wrote:
>
> > From: Alvin Starr <alvin@iplink.net>
> > Date: Tue, 08 Oct 2002 21:16:38 -0400
> >
> > I noticed that RH8.0 has build an open-office RPM.
> >
> > does gcc have a 32 bit address compile and link option?
> >
> > [...]
>
> At least on RH7.1 (and its ancestors), there is a -taso option
> that handles most things to sidestep non-64-bit-clean code.
AFAIK, "-taso" (and "-xtaso") are options of the Tru64 C compiler
(ex Digital, ex Compaq, now HP), I never heard about them for GCC.
"aso" means "address short option", compiler and linker ensure
that only the lower 32 bit of an address are significant,
so you can copy a pointer from/to an "int" (32 bit) and it still
remains valid.
For more details, see the Tru64 C manuals, you might start at
http://www.tru64unix.compaq.com/docs/best_practices/BP_C_COMPILER/TITLE.HTM
AFAIK, there is no such chance in the GNU "cc" / "ld" world.
Regards,
Joerg Bruehe
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: joerg@sql.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Open Office.
2002-10-09 9:23 ` Joerg Bruehe
@ 2002-10-09 15:07 ` Michal Jaegermann
2002-10-09 15:21 ` Falk Hueffner
0 siblings, 1 reply; 5+ messages in thread
From: Michal Jaegermann @ 2002-10-09 15:07 UTC (permalink / raw)
To: axp-list
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?
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Open Office.
2002-10-09 15:07 ` Michal Jaegermann
@ 2002-10-09 15:21 ` Falk Hueffner
2002-10-09 16:41 ` "taso" compiler option (was: Open Office) Joerg Bruehe
0 siblings, 1 reply; 5+ messages in thread
From: Falk Hueffner @ 2002-10-09 15:21 UTC (permalink / raw)
To: axp-list
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?
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).
--
Falk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "taso" compiler option (was: Open Office)
2002-10-09 15:21 ` Falk Hueffner
@ 2002-10-09 16:41 ` Joerg Bruehe
0 siblings, 0 replies; 5+ messages in thread
From: Joerg Bruehe @ 2002-10-09 16:41 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-09 16:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` "taso" compiler option (was: Open Office) Joerg Bruehe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox