Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: gcc/egcs flags to turn off 64bit code generation?
Date: Fri, 15 Jan 1999 17:50:54 -0800	[thread overview]
Message-ID: <19990115175054.A11127@piglet.twiddle.net> (raw)
In-Reply-To: <199901141746.MAA00617@adder.cs.Virginia.EDU>; from Greg Lindahl on Thu, Jan 14, 1999 at 12:46:39PM -0500

On Thu, Jan 14, 1999 at 12:46:39PM -0500, Greg Lindahl wrote:
> How about the suggested abuse of -Tbss, -Tdata, and -Ttext...

Linker scripts, please.  Those options only work properly for a.out. 
Other file formats are more complex than that.

> ... coupled
> with a kernel hack that moves the start addresses of the stack and
> heap?

That would be setting EF_ALPHA_32BIT in the e_flags field of the
ELF header -- em86 uses this.

> Wouldn't that get the desired result with minimal effort?

It doesn't get you 32-bit pointers -- sizeof(void*) is still 8. 
But it does make you tollerant of casting pointers through ints. 
I suppose there might be some application subset that would be
happy with this.

> Or is there other stuff mapped down there?

No, nothing is mapped below the stack (top at 6GB) by default.


r~


  reply	other threads:[~1999-01-16  2:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-14 12:52 gcc/egcs flags to turn off 64bit code generation? Sanjay Lal
1999-01-14 17:30 ` Richard Henderson
1999-01-14 17:46   ` Greg Lindahl
1999-01-16  1:50     ` Richard Henderson [this message]
1999-01-16  2:03       ` Greg Lindahl
  -- strict thread matches above, loose matches on Subject: below --
1999-01-15  3:57 Sanjay Lal
1999-01-16  3:28 ` Richard Henderson
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