I noticed that gcc generates explicit code to manipulate the %bp and %sp (instead of using 'enter'). Is there any evidence one is faster than the other?
- Thanks, - Rao.
I tried looking around to see if there's information on how enter is handled. Obviously the explicit moves of ebp and esp decode intomicro-ops and would be handled quickly.I don't knowif the enter decodes intomicro-ops or if it's handled by the microcode(and thusslower). I think this information is publicly available somewhere, but haven't been able to located it.
My suggestion is to try some simple hand coded routines to benchmarkthe two different methods of entering a procedure.