Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: michal at ellpspace.math.ualberta.ca (Michal Jaegermann)
Subject: 32-bit gcc help
Date: Wed, 7 Jul 2004 11:13:16 -0600	[thread overview]
Message-ID: <20040707111316.A17425@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <40EC2331.3040105@icarus.com>; from steve@icarus.com on Wed, Jul 07, 2004 at 09:22:09AM -0700

On Wed, Jul 07, 2004 at 09:22:09AM -0700, Stephen Williams wrote:
> 
> Also, the DEC compiler for alpha had a "32bit" mode that limited
> the sizes of things in the same way. It needed operating system
> support to keep the application address space within a 32bit
> pointer.

If you will dig deep enough then you will find out that gcc has also
this '-taso' (or this was '-xtaso'?) mode.  At least in some version.
Pointers really have then an upper half always zero and you have to fix
binutils, a loader in particular, to load your program that way that
addresses satisfy that "zeros in high bits" condition.  If you will dig
deep enough you should find some patches.  I do not think that anybody
ever pursued that in depth and checked what else may then break. I guess
that you need to ensure somehow that library calls will not ever return
a "too wide" address or value which probably means "32-bit library
variants".  A flag EF_ALPHA_32BIT for an ELF header is most likely still
there.

For the particular problem of OP I would rather look at fixing
that configure script and/or program. :-)

   Michal




  reply	other threads:[~2004-07-07 17:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-07  2:41 32-bit gcc help js290
2004-07-07  5:22 ` mharris
2004-07-07 16:22   ` steve
2004-07-07 17:13     ` michal [this message]
2004-07-08  0:29     ` france
2004-07-08  2:11     ` mharris
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