flat assembler
Message board for the users of flat assembler.
Index
> Main > ESP and EBP addressing question |
Author |
|
revolution 13 Jan 2009, 09:30
Regardless of what they may tell you "size doesn't matter".
But, seriously, yes, you can use ESP addressing. But it has some problems also. I would recommend that you limit use to leaf procedures only that don't use push/pop inside. Search this very forum for some other discussions about using ESP to access stack parameters. |
|||
13 Jan 2009, 09:30 |
|
bitRAKE 13 Jan 2009, 16:16
The instruction dispatcher is limited in the bytes and instructions processed. So, size will have an impact in optimization, but having another register usually proves more advantageous. The stack frame is only needed in situations of local dynamic allocation.
x64 is another matter, imho. The calling convension requires some stack massaging and there are plenty of registers. |
|||
13 Jan 2009, 16:16 |
|
vid 13 Jan 2009, 16:38
I suggest you to google and read some links on "stack frame", there is lot of it online and explains what you seek to understand.
|
|||
13 Jan 2009, 16:38 |
|
IronFelix 13 Jan 2009, 17:20
Thanks a lot. Thats quite enough for me to understand.
|
|||
13 Jan 2009, 17:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.