| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | movsb |
Answering msg from Paul Edwards to rowan_crowe, on Wednesday January 03 1996 at 00:10 r>> I don't think you'll see much of a speed improvement. On the old r>> 8088s the string commands such as LODSB, STOSB, MOVSB were much r>> faster, but now "hand rolling" them discretely as above can be just r>> as fast, sometimes faster. PE> As you will have seen before you get this message, I calculate PE> both the assembler combo and the C loop to come to to 8n, meaning PE> it is pointless to even convert it to assembler. I had a quick PE> look at the 8088 timings, and it looked like the situation was PE> the same to me, ie the C loop is the same speed as the string PE> commands. While calculating the number of clocks is fun, in the real world it might be quite different. Especially with the Pentium which has nifty things called AGI stalls, which cost a cycle or two, if the instructions are not correctly ordered. (At least that's how I understand it). I suggest you actually profile the code to see which one fares better. ---* Origin: Jelly-Bean software development, Melbourne AUST. (3:635/727.1) SEEN-BY: 50/99 632/103 348 998 633/371 634/384 635/402 503 544 727 638/102 SEEN-BY: 639/252 640/230 690/718 711/401 410 413 430 808 809 934 713/888 SEEN-BY: 800/1 7877/2809 @PATH: 635/727 632/348 635/503 50/99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.