This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc for big-endian as default
- To: naeem dot m dot afzal at intel dot com
- Subject: Re: gcc for big-endian as default
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Wed, 2 Aug 2000 13:34:45 -0700
- CC: gcc at gcc dot gnu dot org
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