flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > fasmg: quesion about element /polynomials |
Author |
|
fabbel 14 Oct 2023, 16:03
... reg the above, i fully understand that exec time is a factor of CNT, but just to understand if sthg else can be at play here reg perf / mem. management of fasmg.
|
|||
14 Oct 2023, 16:03 |
|
Tomasz Grysztar 14 Oct 2023, 16:38
The linear polynomials as implemented in fasmg were not optimized to handle more than a couple of terms efficiently. I was implementing it with expressions like "IMAGE_BASE+ebx*8+ecx" in mind, not a thousand term monstrosities. It it actually impressive that even with 2048 it seemed to work fine for you - if I had to guess, I would not expect it to work well.
Well, as they* say: the only real way to find out is to test it. ___ * revolution, probably. |
|||
14 Oct 2023, 16:38 |
|
fabbel 14 Oct 2023, 16:41
... some other questions that came to mind :
* is it better perf/mem wise to create as many variables as values i need to store, or better to stack values in a single variable ? * reg variable vs virtual usage : how much diff perf & mem-wise in terms of access regarding doing sthg like V = V + 1 vs. load V:4 from Area:offset then store (V+1):4 at Area:offset - what about calm (compute V, V+1 vs similar load/store combination) ? * impact on perfs / mem of nb and complexity of namespaces (nb of symbols, symbols length, nesting levels) ? |
|||
14 Oct 2023, 16:41 |
|
revolution 14 Oct 2023, 16:48
Tomasz Grysztar wrote: Well, as they* say: the only real way to find out is to test it. |
|||
14 Oct 2023, 16:48 |
|
fabbel 14 Oct 2023, 16:49
... thanks for the above f/b ... in line with my intuition .. indeed testing is key (fact checking so to speak)
.. but sometimes knowing about internal tech design can also help / give colour |
|||
14 Oct 2023, 16:49 |
|
Tomasz Grysztar 15 Oct 2023, 09:54
Have you tried to browse the actual source code? What I could do is perhaps adding more technical explanations in the comments (the ones that are there currently are mostly focused on my own needs, reminding me of various caveats).
|
|||
15 Oct 2023, 09:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.