From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,b77a8fbcd0760f0f X-Google-Attributes: gidf5392,public X-Google-Thread: ff9be,b77a8fbcd0760f0f X-Google-Attributes: gidff9be,public X-Google-Thread: 111c93,b77a8fbcd0760f0f X-Google-Attributes: gid111c93,public X-Google-Thread: f9382,b77a8fbcd0760f0f X-Google-Attributes: gidf9382,public From: spambots@suck.on.this.edu (Bounce) Subject: Re: Q: Is it possible to compile binaries for a different processor? Date: 1999/05/15 Message-ID: #1/1 X-Deja-AN: 478068778 References: <37168eea.69605890@news.yec1.on.wave.home.com> <7f68ii$k98$1@pulp.ucs.ualberta.ca> X-Trace: cA8BDH8X5FqRXeeXKFrV57mMmZa+tVXL5+410e6V9FU= User-Agent: slrn/0.9.5.5 (UNIX) NNTP-Posting-Date: 15 May 1999 05:01:15 GMT Newsgroups: comp.os.linux.development.system,comp.os.linux.alpha,comp.os.linux.questions,comp.os.linux X-Complaints-To: abuse@rcn.com On 16 Apr 1999 02:50:58 GMT, Michal Jaegermann wrote: >Going the other direction (to cross-compile on x86 for Alpha) seems >to be impossible, or at least very hard, as cross-compiler performs >various arithmetic operations in a target arithmetic and gcc currently >assumes that it can fit them in a host registers. Registers on >Alpha are twice a width of those on Intel. You know, actually, I *was* able to perform a preliminary port of GNAT (an Ada 95 compiler melded with gcc 2.8.1) to the alpha by cross-compiling from x86/linux (since an alpha/linux version didn't exist). So now I can compile Ada code on the alpha, provided I don't use any of the tasking abilities (they haven't been ported yet ...). So my experience is that it *is* possible to cross compile from an x86 to the alpha (well, at least from a pentium), and not only that, it's possible to cross-compile a port of gcc as well! I'm not sure if floating point stuff will cross-compile, but basic integer stuff seems to work fine. -Albert computer is interport.net, user is aklee.