Subject: Re: CVS commit: src/sys/arch/sgimips
To: Toru Nishimura <locore32@gaea.ocn.ne.jp>
From: Andrey Petrov <petrov@netbsd.org>
List: port-mips
Date: 10/08/2003 11:38:04
On Thu, Oct 09, 2003 at 03:29:38AM +0900, Toru Nishimura wrote:
> Andrey Petrov <petrov@netbsd.org> said;
> 
> > > It can be written in endian-neutral way by declaring a 32bit quantity of
> > > unsigned long and do explicit bitmasking and shifting.  The solution
> > > is cheap and elegant, removing endian puzzles forever.
> > 
> > Generated code will be less efficient thou.
> 
> As far as MIPS instruction set concern, good compilers will produce
> straight LOAD/STORE insn sequence even if you see &0xFF... and
> << >> on programs.   Alpha does more fancy play there.
> 

We use gcc, and even though I tried on sparc64 I'd be surprised if mips port
does better with this regard. I also would argue because of driver which is used
for all ports.

	Andrey