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 E1C842EFF8 for ; Wed, 29 Nov 2000 12:36:56 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eATHauq03891 for axp-list@listman.redhat.com; Wed, 29 Nov 2000 12:36:56 -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 eATHauD03882 for ; Wed, 29 Nov 2000 12:36:56 -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 141BA7-0004E9-00; Wed, 29 Nov 2000 17:36:55 +0000 Received: by crab.dcs.gla.ac.uk (8.8.8+Sun/Dumb) id RAA21886; Wed, 29 Nov 2000 17:36:55 GMT From: reig@dcs.gla.ac.uk Message-Id: <200011291736.RAA21886@crab.dcs.gla.ac.uk> Subject: Re: 32-bit binaries (howto?) To: axp-list@redhat.com Date: Wed, 29 Nov 2000 17:36:54 +0000 (GMT) Cc: reig@dcs.gla.ac.uk (Fermin Reig) In-Reply-To: from "Ross A Knepper" at Nov 29, 2000 12:08:36 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 Ross A Knepper wrote: > > On Wed, 29 Nov 2000 reig@dcs.gla.ac.uk wrote: > > I need to build a 32 bit binary on an alpha. > > before getting into a prolonged discussion, i think it might be worth > asking why you need to do this? perhaps there's some other way to > accomplish your goal. > I'm trying to port the SML/NJ compiler (http://cm.bell-labs.com/cm/cs/what/smlnj/) to alpha-linux. It only runs on alpha OSF or DUNIX now. The runtime system is written in C, and I need to compile this for alpha linux first. I got this from one of the authors of SML/NJ: > > > The main issue is that you need to create a 32-bit executable during > > > the linking process. I've been told the following URL explains how > > > to do this: > > > > > > http://www.alphalinux.org/archives/debian-alpha/September1999/0078.html 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 So assuming I *really* need 32-bit binaries, does anyone know of an easy way to do it? Thanks Fermin