Hi all u guys...

1) which is more faster accessing stack by ebp or esp. ?

Posted on 2002-12-21 06:10:52 by processingspeed

Well, using ESP is faster in the sense that you don't have to first move it to EBP, then restore it, etc.. Moreover, it frees EBP for other uses.

ESP produces slightly bigger code, which could cause a slowdown if your instruction (or trace) cache is too small. Very unlikely to happen though.

In short, I personally certainly prefer ESP.

Hope this helps.
Posted on 2002-12-21 06:38:24 by Maverick