[linux] Testovací dátový súbor

OLIVER Kindernay oliver.kindernay na gmail.com
Úterý Červen 16 15:39:08 CEST 2009


No, ten váš kód bude zrejme o čosi rýchlejší. DF je vo flags na desiatom
bite takze or s 00000000010000000000 by zrejme pomohol.

Na Core 2 Duo mal kod
"time dd if=/dev/zero bs=500 count=2000 2>/dev/null | tr '\0' x > /dev/null"

real    0m0.009s
user    0m0.001s
sys     0m0.008s

U mňa doma nejakých 18 tisicin:)

2009/6/15 Matus UHLAR - fantomas <uhlar na fantomas.sk>

> > On 15.06.09 21:56, Matus UHLAR - fantomas wrote:
> > > stringove instrukcie uz v 32 a 64bit modoch nefunguju?
>
> On 15.06.09 22:07, Matus UHLAR - fantomas wrote:
> > a mohli by, takze cyklus vratane inicializatie by mohol vyzerat takto:
> >
> > mov al, 0x78
> > mod ecx,1000000
> > mov edi, esp
> > mov es, ds
> > or flags, <df>       ;   toto by malo setnut flag DF neviem ako sa to
> pise
> > rep stosb
>
> a pri tom poslednom treba este zabezpecit aby address-size atribut
> instrukcie bol 32bit, co uz vobec neviem ako sa robi ;-)
> --
> Matus UHLAR - fantomas, uhlar na fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> LSD will make your ECS screen display 16.7 million colors
> _______________________________________________
> https://lists.linux.sk/mailman/listinfo/linux
> Meta FAQ: http://www.sklug.sk/lists/linux/metafaq.html
>
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://lists.linux.sk/pipermail/linux/attachments/20090616/2983438e/attachment.html>


Další informace o konferenci linux