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/