flat assembler
Message board for the users of flat assembler.
Index
> Windows > A more elegant way of aligning procedures Goto page Previous 1, 2 |
Author |
|
AsmGuru62 20 Dec 2012, 15:40
@nmake: all the points you mentioned are for speed.
What do you think is faster: polluted cache or non-polluted cache? Basically, these terms are equivalent to "speed". Alignment = Prefetching = more speed (everyone knows that, these are synonyms). |
|||
20 Dec 2012, 15:40 |
|
nmake 20 Dec 2012, 16:37
Yes you get speed, but only the kind of speed you have in the beginning of your program. If you code a small program, the speed you get is the same speed you get when aligning. If your program grow in size, you add alignment to maintain the same speed across the whole program, so that the speed stays at 1.0 from the beginning, 1.0 in the middle and finally 1.0 in the end. If you can maintain 1.0 all the way you have successfully maintained optimal speed. But your question in the beginning of this thread why fasm is so fast without aligning is the very same reason, it is because alignment doesn't gain speed, it only maintains optimal speed (1.0 here, 1.0 there and 1.0 in the end)
|
|||
20 Dec 2012, 16:37 |
|
AsmGuru62 20 Dec 2012, 18:17
Yes, my point was that we all align our code, yet we very well can do without it.
And be as fast as FASM. |
|||
20 Dec 2012, 18:17 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.