This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How do I get __ARMEB__ defined ?
- To: "Edward,Yan-Chi,Lin" <yanchi at oak dot com dot tw>
- Subject: Re: [ECOS] How do I get __ARMEB__ defined ?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 13 Dec 2000 17:06:54 +0000
- Cc: Ecos-Discuss <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <NDBBIJMAFMCKGDEBEFICCEOCFAAA.yanchi@oak.com.tw>
"Edward,Yan-Chi,Lin" wrote:
>
> Thanks Jifl
>
> But why the option "Use big endian mode" didn't add the "-EB" to the Global compiler flags ?
That would be a problem. Which platform is this?
> Now from my understanding. If I want to access a byte at, for examples, 0x7FF9003,
> I can't use HAL_READ_UINT8(0x7FF9003). Is that right ?
Yes, you always have to *assume* it is little-endian, and let the system
handle the translation if it's actually big-endian. Believe me, this is
better for generic code than the alternative which is always to provide two
values.
Jifl
--
Red Hat UK, Rustat House, 62 Clifton Road, Cambridge, UK. CB1 7EG
Tel: +44 (1223) 271062 || These opinions are all my own fault