Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: reig@dcs.gla.ac.uk
To: axp-list@redhat.com
Subject: Re: 32-bit binaries (howto?)
Date: Thu, 30 Nov 2000 11:05:40 +0000 (GMT)	[thread overview]
Message-ID: <200011301105.LAA22190@crab.dcs.gla.ac.uk> (raw)
In-Reply-To: <001201c05a7a$aea47fa0$88bcfea9@hptilap.hpti.com> from "Greg Lindahl" at Nov 29, 2000 10:07:32 PM

Greg Lindahl wrote:
> 
> > I'm afraid I don't know the exact reason why I must produce 32-bit
> > binaries for the runtime, but I suspect that SML/NJ's code generator
> > only emits 32 bit code, and that has to be linked with the
> > runtime. All I know at this point is that this is required. For ex,
> > they do this for the DUNIX port:
> >
> > CC =         cc -std
> > LDFLAGS =    -non_shared -T 20000000 -D 40000000
> 
> You should ask again. "32 bit code" may mean that they assume pointers fit
> into ints, in which case they would have to have specified -xtaso in LDFLAGS
> on DU, which they did not. It might also mean that they expect the high bits
> to be zero, which -taso on Linux will guarantee. I suspect the second is the
> case.

This is the reply I've got from the SML/NJ team:

"ML values are represented as 32-bit quantities, so all code and data
has to live in the first 2^32 bytes of address space, or things break.
The run-time system is actually designed to support a 64-bit
implementation, but the compiler needs substantial reworking to do
so."

SML/NJ comes as an interpreter loop, or rather as an interactive
compiler; whenever you type a definition or an expression, the system
generates *native code on the fly* for the definition, or to evaluate
the expression. 

You also say in your other mesage that ld versions which accept -taso
are widely available. However, even my installation does not have it:

ld -verbose
GNU ld version 2.9.1 (with BFD 2.9.1.0.24)
  Supported emulations:
   elf64alpha
   alpha
using internal linker script:
...

ld -taso -o foo *.o             
ld: unrecognized -a option `so'

ld --help
...
  -a KEYWORD                  Shared library control for HP/UX compatibility
...
  -t, --trace                 Trace file opens
...

Fermin



   





  reply	other threads:[~2000-11-30 11:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-29 16:49 32-bit binaries (howto?) reig
2000-11-29 17:00 ` Ron Farrer
2000-11-29 17:08 ` Ross A Knepper
2000-11-29 17:36   ` reig
2000-11-30  3:07     ` Greg Lindahl
2000-11-30 11:05       ` reig [this message]
2000-12-01  6:27         ` Greg Lindahl
2000-12-02 21:39           ` Ivan Kokshaysky
2000-12-14 12:56           ` reig
2000-12-14 16:13             ` Greg Lindahl
2000-12-14 16:38               ` reig
2000-11-30  3:05 ` Greg Lindahl
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