🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51408

How to set up gcc for a strange machine...

#51408
From: M Y Ben Gershon
Date: Sun, 30 May 1993 06:01
18 lines
1768 bytes
I have come across a very strange problem when trying to get the gcc
floating point support working on the ARM processor.  Everything in the ARM
in LITTLE_ENDIAN.  There is no doubt about that.  That means long integers
(ie 64 bit double words) and so on.  HOWEVER, floating point data is stored
in BIG_ENDIAN format!  By that I mean that the (32 bit) word with the sign
etc is in the LOWEST address, and the lower bits of the mantissa are in the
HIGHER ADDRESS.  Within each word, the order is LITTLE_ENDIAN.  I tried
altering WORDS_BIG_ENDIAN and HOST_WORDS_BIG_ENDIAN but that didn't help - it
messed up the register allocations as far as I can see.  I managed to get part
of the way there, but then found that when a floating point constant (double)
was split into two ints they were the wrong way round.  That only happened
when optimization was enabled.

Does anyone know of any way round this problem?  Has it appeared on any
other processor?  I am using gcc 2.4.1.

Michael Ben-Gershon
mybg@doc.ic.ac.uk
Technical Details
Message-ID: <1u9iklINNla9@swan.doc.ic.ac.uk>
Path: arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!news.dfn.de!darwin.sura.net!news-feed-1.peachnet.edu!gatech!howland.reston.ans.net!agate!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,f1dddf38ecd83e84,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-29 23:36:54 PST
Path: arc1-ca.pugleaf.net!gmd.de!rrz.uni-koeln.de!news.dfn.de!darwin.sura.net!news-feed-1.peachnet.edu!gatech!howland.reston.ans.net!agate!doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail
From: mybg@doc.ic.ac.uk (M Y Ben Gershon)
Newsgroups: gnu.gcc.help
Subject: How to set up gcc for a strange machine...
Date: 30 May 1993 07:01:57 +0100
Organization: Department of Computing, Imperial College, University of London, UK.
Lines: 20
Sender: mybg@doc.ic.ac.uk (Michael Ben-Gershon)
Distribution: gnu
Message-ID: <1u9iklINNla9@swan.doc.ic.ac.uk>
NNTP-Posting-Host: swan.doc.ic.ac.uk