lkml.org 
[lkml]   [2001]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Endianness-aware mkcramfs
There is another argument for supporting both endiannesses....

Consider an embedded system which can be run in either endianness. Sounds
silly? MIPS processors can run big or little endian, and many people
routinely switch between them.

Matt

On Tue, Dec 04, 2001 at 04:39:18PM -0800, H. Peter Anvin wrote:
> Ingo Oeser wrote:
>
> >
> > Yes, from a CS point of view.
> >
> > But practically cramfs is created once to contain some kind of
> > ROM for embedded devices. So if we never modify these data again,
> > why not creating it in the required byte order?
> >
> > Why wasting kernel cycles for le<->be conversion? Just because
> > it's more general? For writable general purpose file systems it
> > makes sense, but to none of romfs, cramfs etc.
> >
>
>
> Because otherwise you far too easily end up in a situation where every
> system suddenly need to be able to support *BOTH* endianisms, at which
> point you're really screwed; supporting dual endianism is significantly
> more expensive than supporting the "wrong" endianism, and it affects all
> systems.
>
> Nip this one in the bud.
>
> -hpa
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver

M: No, Windows doesn't have any nag screens.
C: Then what are those blue and white screens I get every day?
-- Mike and Cobb
User Friendly, 1/4/1999
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.075 / U:1.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site