flat assembler
Message board for the users of flat assembler.
Index
> High Level Languages > Cost of different custom calling convention |
Author |
|
revolution 14 Nov 2009, 23:51
Just program it up and run a test to see what effect it has on your programs.
Don't waste time trying to think it through, the CPUs are far too complex and seemingly unpredictable to get any good estimates purely by thought. |
|||
14 Nov 2009, 23:51 |
|
LocoDelAssembly 15 Nov 2009, 01:08
Specially test the following with both methods and tells us what results you get:
Code: mov ebx, LARGE_VALUE .loop: custom_call testCustom, [var1], [var2] mov edx, eax custom_call testCustom, [var3], [var4] ; Yes, it is important this second call although you may use the same arguments used in the previous call if you want add eax, edx dec ebx jnz .loop Versus Code: mov ebx, LARGE_VALUE .loop: normal_call testNormal, [var1], [var2] mov edx, eax normal_call testNormal, [var3], [var4] ; Yes, it is important this second call although you may use the same arguments used in the previous call if you want add eax, edx dec ebx jnz .loop |
|||
15 Nov 2009, 01:08 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.