From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,ddd5f2f431fd91ca X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Path: g2news1.google.com!postnews.google.com!t13g2000vbo.googlegroups.com!not-for-mail From: John Wallace Newsgroups: comp.sys.dec Subject: Re: OpenVMS Still Only 32-Bit Addresses!? Date: Tue, 15 Feb 2011 00:46:40 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <743a5365-d7b1-4730-bbe1-37e58643972f@z20g2000yqe.googlegroups.com> <117a13ef-2b0b-4418-ad13-aa5abbcd0cf1@w19g2000yqa.googlegroups.com> NNTP-Posting-Host: 80.229.247.139 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1297759600 27156 127.0.0.1 (15 Feb 2011 08:46:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 15 Feb 2011 08:46:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t13g2000vbo.googlegroups.com; posting-host=80.229.247.139; posting-account=LoTgDQkAAADTKXJ587vuIocn0MiURp6p User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729),gzip(gfe) Xref: g2news1.google.com comp.sys.dec:2865 On Feb 15, 8:31=A0am, Michael Kraemer wrote: > Lawrence D'Oliveiro schrieb: > > > In message , Michael Kraemer wrote: > > >>... but the compiler should operate in "legacy mode" > >>by default. > > > Why can=92t it be the user=92s choice? > > Compilers generating 32 or 64bit code *give* the user the choice. > However, as said before, it is good practice to have 32 bits by default. > In particular the typical VMS customer welcomes this behaviour. > And I would second that. > > > > >>Linux is the worst case I've encountered so far, > >>it seems you need to run on > >>a 64bit machine to generate 64bit executables, > >>and, to make matters even worse, > >>FP results sometimes are different for 32/64bit executables. > > > I thought GCC could cross-compile from any architecture to any architec= ture. > > That's very theoretical, I'd say. > You'd still need all the other system's libraries I guess. > On the boxes I'm forced to work on, they're not available it seems. > Maybe because Linux can't mix both bittedness on the same machine. "Maybe because Linux can't mix both bittedness on the same machine." I could have sworn I'd seen Linux-86-hosted ARM-targetted gcc support both little endian and big endian ARM. Yes, here's a URL: http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html There are practical limitations in what can be done with gcc cross compiles, and what is sensible to do, but the endianness issue doesn't appear to be one of them.