* Re: gcc for big-endian as default
@ 2000-08-02 13:34 Nick Clifton
2000-08-02 13:52 ` Michael Meissner
0 siblings, 1 reply; 4+ messages in thread
From: Nick Clifton @ 2000-08-02 13:34 UTC (permalink / raw)
To: naeem.m.afzal; +Cc: gcc
Hi Naeem,
: > How could I make gcc crosscompiler (ARM-LINUX) to compile with
: > target paltform as big-endian, so that when compiling with this
: > compiler, I dont have to use -mbig-endian every time.
The simplest method is to add the -mbig-endian switch to CC1_SPEC
defiend in gcc/config/arm/arm.h, like this:
#define CC1_SPEC "-mbig-endian"
Note, that you will probably also want to change the defintion of
CPP_ENDIAN_DEFAULT_SPEC to reflect this change.
Also you ought to change the defintion of MULTILIB_DEFAULTS in
gcc/config/arm/linux-elf.h again to reflect this change.
Cheers
Nick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc for big-endian as default
2000-08-02 13:34 gcc for big-endian as default Nick Clifton
@ 2000-08-02 13:52 ` Michael Meissner
0 siblings, 0 replies; 4+ messages in thread
From: Michael Meissner @ 2000-08-02 13:52 UTC (permalink / raw)
To: Nick Clifton; +Cc: naeem.m.afzal, gcc
On Wed, Aug 02, 2000 at 01:34:45PM -0700, Nick Clifton wrote:
> Hi Naeem,
>
> : > How could I make gcc crosscompiler (ARM-LINUX) to compile with
> : > target paltform as big-endian, so that when compiling with this
> : > compiler, I dont have to use -mbig-endian every time.
>
> The simplest method is to add the -mbig-endian switch to CC1_SPEC
> defiend in gcc/config/arm/arm.h, like this:
>
> #define CC1_SPEC "-mbig-endian"
>
> Note, that you will probably also want to change the defintion of
> CPP_ENDIAN_DEFAULT_SPEC to reflect this change.
>
> Also you ought to change the defintion of MULTILIB_DEFAULTS in
> gcc/config/arm/linux-elf.h again to reflect this change.
The ARM maintainers might want to think about providing support directly.
Looking at config.sub, it looks like armbe-* and armle-* specifically select
between big and little endian defaults. I did a similar thing with the Powerpc
-- configuring powerpc-eabi selects the big endian as default, and configuring
powerpcle-eabi selects the little endian as default.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482
^ permalink raw reply [flat|nested] 4+ messages in thread
* gcc for big-endian as default
@ 2000-08-01 18:43 Afzal, Naeem M
2000-08-02 12:44 ` Erik Mouw
0 siblings, 1 reply; 4+ messages in thread
From: Afzal, Naeem M @ 2000-08-01 18:43 UTC (permalink / raw)
To: 'gcc@gcc.gnu.org'
> Hi
>
> How could I make gcc crosscompiler (ARM-LINUX) to compile with target
> paltform as big-endian, so that when compiling with this compiler, I dont
> have to use -mbig-endian every time.
>
> thanks
>
> -naeem
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc for big-endian as default
2000-08-01 18:43 Afzal, Naeem M
@ 2000-08-02 12:44 ` Erik Mouw
0 siblings, 0 replies; 4+ messages in thread
From: Erik Mouw @ 2000-08-02 12:44 UTC (permalink / raw)
To: naeem.m.afzal; +Cc: gcc
On Tue, 1 Aug 2000 18:43:07 -0700 , Afzal, Naeem M wrote:
>> How could I make gcc crosscompiler (ARM-LINUX) to compile with target
>> paltform as big-endian, so that when compiling with this compiler, I dont
>> have to use -mbig-endian every time.
Ask David Meng (david.meng@intel.com). He figured out how to build a
big-endian cross compiler for arm-linux and also posted the recipe to the
linux-arm mailing list.
Erik
--
LART. 250 MIPS under one Watt. Free hardware design files.
http://www.lart.tudelft.nl/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-08-02 13:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-02 13:34 gcc for big-endian as default Nick Clifton
2000-08-02 13:52 ` Michael Meissner
-- strict thread matches above, loose matches on Subject: below --
2000-08-01 18:43 Afzal, Naeem M
2000-08-02 12:44 ` Erik Mouw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).