flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
AsmGuru62 20 Apr 2015, 18:35
Intel says "Avoid using INC/DEC" and replace it with ADD xx,1 or SUB xx,1.
The reference is here: http://www.agner.org/optimize/optimizing_assembly.pdf Part 16.2 |
|||
![]() |
|
revolution 20 Apr 2015, 23:00
MIHIP: Those instructions are not the same because the FLAGS are set differently.
AsmGuru62: Those old optimisations are not relevant on newer CPUs AFAICT. Since the carry flag was placed into a separate register internally there is no longer any penalty. |
|||
![]() |
|
MIHIP 21 Apr 2015, 17:31
Ok. Thanks.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.