Compiler optimization (was: 8086 (was Re: more talking to the press.))

From: Hans Franke <Hans.Franke_at_mch20.sbs.de>
Date: Fri Nov 14 14:33:35 2003

Am 14 Nov 2003 21:05 meinte Fred N. van Kempen:

> On Fri, 14 Nov 2003, Hans Franke wrote:
>
> > BTW: above example is exactly one thing why I hate C.
> > basicly every compiler will generate a stupid loop, while
> > in assembly a REP STOSW would do the trick at maximum
> > speed possible.
> Thats why we invented code peeking and code optimiziers,
> Hans. A decent optimizer for x86 *will* know to replace
> that loop with a REP-prefixed instruction.

Would be great, I still haven't seen one like that.
And just let me guess, it'll replace it by a REP STOSB,
and not use STOSW or try to allign the REP to 16 Bit borders...

Gruss
H.
--
VCF Europa 5.0 am 01./02. Mai 2004 in Muenchen
http://www.vcfe.org/
Received on Fri Nov 14 2003 - 14:33:35 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:36:19 BST