From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 99F972EFA1 for ; Thu, 30 Nov 2000 06:05:42 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eAUB5g606702 for axp-list@listman.redhat.com; Thu, 30 Nov 2000 06:05:42 -0500 Received: from iona.dcs.gla.ac.uk (iona.dcs.gla.ac.uk [130.209.240.35]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eAUB5fD06698 for ; Thu, 30 Nov 2000 06:05:42 -0500 Received: from crab.dcs.gla.ac.uk ([130.209.241.150]) by iona.dcs.gla.ac.uk with esmtp (Exim 3.13 #1) id 141RX3-0005xD-00 for axp-list@redhat.com; Thu, 30 Nov 2000 11:05:41 +0000 Received: by crab.dcs.gla.ac.uk (8.8.8+Sun/Dumb) id LAA22190; Thu, 30 Nov 2000 11:05:40 GMT From: reig@dcs.gla.ac.uk Message-Id: <200011301105.LAA22190@crab.dcs.gla.ac.uk> Subject: Re: 32-bit binaries (howto?) To: axp-list@redhat.com Date: Thu, 30 Nov 2000 11:05:40 +0000 (GMT) In-Reply-To: <001201c05a7a$aea47fa0$88bcfea9@hptilap.hpti.com> from "Greg Lindahl" at Nov 29, 2000 10:07:32 PM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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