flat assembler
Message board for the users of flat assembler.
Index
> Windows > Storing data in code segment |
Author |
|
revolution 01 Nov 2008, 19:09
There may be a small improvement in performance if you match the call and ret into natural pairs (the modern CPUs have special circuitry to make call-ret pairs quite efficient). Also if the data are all grouped into one location you may get a small improvement because of cache locality. Although, these potential performance improvements would be quite minor for most applications so don't expect too much.
|
|||
01 Nov 2008, 19:09 |
|
vid 02 Nov 2008, 12:24
On my machine, mismatched call/ret take about 18 cycles, and matched 1-2 cycles, so that is IMO really not worth of special care.
|
|||
02 Nov 2008, 12:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.