Procedure entry code.

Procedure entry code.

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.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Max

Leave a Comment

Please sign in to add a comment. Not a member? Join today