🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #261

Re: optymalizacja

#261
From: tosamo
Date: Fri, 19 May 2006 19:49
32 lines
2061 bytes
Użytkownik "Bogdan (bogdro)" <bogdan@bogdan.pl> napisał w wiadomości 
news:e4kthl$25d$1@nemesis.news.tpi.pl...
> tosamo napisał(a):
>> Ale takie cos :
>>
>> mov DWORD PTR [Intermediate_Hash],067452301h
>> mov DWORD PTR [Intermediate_Hash+4],0EFCDAB89h
>>
>> bedzie lepsze niz
>>
>> mov eax,offset Intermediate_Hash
>> mov DWORD PTR [eax],067452301h
>>
>> ?  Wersja z rejestrem nie jest szybsza ?
>
> Wersja z rejestrem na pewno będzie wygodniejsza w pisaniu i w
> utrzymaniu. Czy szybsza, to nie wiem. Jak miałbym zgadywać, to
> powiedziałbym, że nie, bo podałeś grupy instrukcji typu:

Nie wiem jak to cos ale takie zapamietywanie rejestrow

    mov DWORD PTR [REGISTERS],EAX
    mov DWORD PTR [REGISTERS+4],EBX
    mov DWORD PTR [REGISTERS+4*2],ECX

jest wolniejsze niz to

    sub esp,12
    mov DWORD PTR [esp+4*2],EBP
    mov DWORD PTR [esp+4],ESI
    mov DWORD PTR [esp],EDI
Technical Details
Message-ID: <e4l7gk$1au$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <e4f5nl$rj4$1@inews.gazeta.pl> <e4ffrk$he5$1@nemesis.news.tpi.pl> <e4fi7h$q1b$1@inews.gazeta.pl> <e4hbi4$fpm$1@atlantis.news.tpi.pl> <e4it6m$c00$1@inews.gazeta.pl> <e4j148$kn7$1@inews.gazeta.pl> <e4k9m6$ogh$1@atlantis.news.tpi.pl> <e4kh6c$fp$1@inews.gazeta.pl> <e4kthl$25d$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "tosamo" <tosamo@o2.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: optymalizacja
Date: Fri, 19 May 2006 21:49:36 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 35
Message-ID: <e4l7gk$1au$1@inews.gazeta.pl>
References: <e4f5nl$rj4$1@inews.gazeta.pl> <e4ffrk$he5$1@nemesis.news.tpi.pl> <e4fi7h$q1b$1@inews.gazeta.pl> <e4hbi4$fpm$1@atlantis.news.tpi.pl> <e4it6m$c00$1@inews.gazeta.pl> <e4j148$kn7$1@inews.gazeta.pl> <e4k9m6$ogh$1@atlantis.news.tpi.pl> <e4kh6c$fp$1@inews.gazeta.pl> <e4kthl$25d$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: aalh163.neoplus.adsl.tpnet.pl
X-Trace: inews.gazeta.pl 1148068180 1374 83.5.37.163 (19 May 2006 19:49:40 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Fri, 19 May 2006 19:49:40 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
X-User: etet100
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit