🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #306

defining endianness on mips processor

#306
From: Dan Lambright
Date: Sun, 30 Aug 1992 08:30
19 lines
1180 bytes
On the c compiler provided with the RISC os for their mips
processor, there is an option to toggle between big and
little endian.  cc (-EL/EB)  On our workstations we compile
in big endian, and for our engineering platform we compile
in little endian.

gcc does not apear to have such an option of its command line.
There are #defines that you can use,  it seems, to say which 
type of endianness you want, when you build gcc.

I realy don't want to have two gcc executables (one for big and
one for little endian.)  I'd like a command line argument
to be able to switch between the two.  Is that going to exist
in a future gcc release, or is it posible to hack on the code
to produce big/little endian as definable by the user?

Dan Lambright
dan@gordian.com
Technical Details
Message-ID: <1992Aug30.083045.22672@gordian.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!wupost!usc!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!orion.oac.uci.edu!gordius!dan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!wupost!usc!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!orion.oac.uci.edu!gordius!dan
From: dan@gordian.com (Dan Lambright)
Subject: defining endianness on mips processor
Message-ID: <1992Aug30.083045.22672@gordian.com>
Organization: Gordian; Costa Mesa, CA
Distribution: gnu
Date: Sun, 30 Aug 1992 08:30:45 GMT
Lines: 20