If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Optimal string copy performance
I need to copy some RAM memory area to the screen buffer with as good a performance as possible. The prerequisites/restrictions a 1.) it has to work under OS/2 - that is with 32-bit legacy - no 64-bit instructions 2.) if possible it should support INTEL and AMD CPUs but I might think about processor specific implementations 3.) it should give preference to low irq latency - that is, if a lot of IRQs need to be serviced, copy performance (and therefore video refresh performance) can be sacrified against low irq latency/quick irq response 4.) the solution should outperform the "rep movsd" instruction Is your VRAM write-back or write-through? Is it write-combining? All of these things will affect whether your choice of data manipulation instructions is even significant. (-: |
#2
|
|||
|
|||
Optimal string copy performance
Jonathan de Boyne Pollard wrote:
I need to copy some RAM memory area to the screen buffer with as good a performance as possible. The prerequisites/restrictions a [snip] 4.) the solution should outperform the "rep movsd" instruction Is your VRAM write-back or write-through? Is it write-combining? All of these things will affect whether your choice of data manipulation instructions is even significant. (-: Even more interesting is the issue of why he thinks the code could/should affect hw interrupt response times! This pretty much means that he's thinking about running this copy code in kernel mode, with interrupts disabled, something that stopped making sense around the time of the original EGA/VGA adapters! Terje PS. Why the original cross-poster thinks this is even marginally relevant to comp.arch beats me.:-( -- - Terje.Mathisen at tmsw.no "almost all programming can be viewed as an exercise in caching" |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Q6600 optimal memory for performance? | Bill | General | 7 | August 1st 07 10:22 PM |
appiq and true copy, performance monitor, etc | boatgeek | Storage & Hardrives | 0 | May 27th 05 06:57 PM |
Ghost 2003 command string | Rune | Storage (alternative) | 1 | January 19th 04 06:27 PM |
what is a reference string? | takashi | General | 1 | August 25th 03 07:32 AM |
what is a reference string? | takashi | General Hardware | 1 | August 25th 03 07:32 AM |