flat assembler
Message board for the users of flat assembler.
Index
> Projects and Ideas > Make expressions faster |
Author |
|
r22 30 Jun 2009, 19:53
Optimized you say ? ... ?
Code: lea eax,[eax + eax*8 + 3] |
|||
30 Jun 2009, 19:53 |
|
Tomasz Grysztar 30 Jun 2009, 20:01
r22 wrote: Optimized you say ? ... ? Code: lea eax,[eax*9 + 3] Let fasm do the job, it really likes to have less boring tasks to do. |
|||
30 Jun 2009, 20:01 |
|
r22 01 Jul 2009, 19:50
@eskizo
Making a generic expression optimizer for x86 is not a simple task. A lot of talented computer scientists work fairly hard to create the optimizing compilers we use for HLLs. The price we pay for the Swiss-army-knife instruction set with ever increasing extensions. An algorithm pseudo language -> optimized FASM syntax would be cool A = A * 9 + 3 -> lea eax,[eax*9 + 3] @Tomasz If only FASM would optimize the stack for my Win64 invokes/fastcalls, but I guess we can't make writing optimized ASM 'too' easy or else everyone would be doing it. |
|||
01 Jul 2009, 19:50 |
|
Tomasz Grysztar 01 Jul 2009, 20:57
r22 wrote: @Tomasz |
|||
01 Jul 2009, 20:57 |
|
vid 01 Jul 2009, 21:12
Quote: If only FASM would optimize the stack for my Win64 invokes/fastcalls, but I guess we can't make writing optimized ASM 'too' easy or else everyone would be doing it. C optimizes your stack... wonder why everyone is "doing it" |
|||
01 Jul 2009, 21:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.