Subject: Re: Do we need new MACHINE_ARCH for Dreamcast?
To: bsh@grotto.iijnet.or.jp, SAITOH Masanobu <masanobu@iij.ad.jp>
From: Todd Vierling <tv@wasabisystems.com>
List: port-sh3
Date: 09/18/2000 09:57:06
On Mon, 18 Sep 2000, Todd Vierling wrote:
: Only one primary object format is in use at any time (opposite-endian
: binaries need to run under emulation). The correct MACHINE and MACHINE_ARCH
: definitions could be provided with "#ifdef" supplied by the config file.
:
: Userland code should not rely on <sys/param.h> for the proper values;
: uname() and sysctl() exist for that.
:
: : #if 1
: : #define _BYTE_ORDER _BIG_ENDIAN
: : #else
: : #define _BYTE_ORDER _LITTLE_ENDIAN
: : #endif
:
: This could use same #ifdef as MACHINE and MACHINE_ARCH.
Note that mips does have some gcc-provided #defines that tell headers which
endian is in use (from -EB and -EL flags). These can be used to provide the
proper #ifdef macro, as well.
--
-- Todd Vierling <tv@wasabisystems.com> * http://www.wasabisystems.com/
-- Speed, stability, security, and support. Wasabi NetBSD: Run with it.