Subject: Re: improving ssh performance on sun4m systems
To: Todd Vierling <tv@wasabisystems.com>
From: Rick Kelly <rmk@toad.rmkhome.com>
List: port-sparc
Date: 03/15/2002 09:29:17
Todd Vierling said:
>Oh, I'm sure there's boost, but I'd be curious to see an analysis. The
>speed difference between mul/div on v7 and v8 is *huge*.
>The sparc compiler, in the v7 default mode, emits a call to
>.[u]{mul,div,mod} for the corresponding mul/div instructions; these
>functions can be replaced by the v8 instruction and a RET, without even
>needing a save/restore. You get most of the speedup without having to
>recompile the whole shebang.
According to the GNU docs, there is also some instruction reordering as
well as inclusion of the instructions above when using -mcpu=v8.
--
Rick Kelly rmk@rmkhome.com www.rmkhome.com