View Single Post
  #5  
Old 10-10-2022, 04:15
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 737
Rept. Given: 37
Rept. Rcvd 48 Times in 30 Posts
Thanks Given: 671
Thanks Rcvd at 1,064 Times in 482 Posts
chants Reputation: 48
In fact ebp/rbp is used by the x86 architecture as the base pointer for the stack specifically in instructions enter and leave.

If the frame is managed only via esp/rsp with push, pop, call, ret and add/sub, then the ebp could actually be used on effect as an ordinary register. It also may have some nuances in how it appears in the addressing modes.

In general, addressing modes combined with opcode specific register uses can help infer optimal register allocation for a given task.
Reply With Quote
The Following 2 Users Say Thank You to chants For This Useful Post:
sh3dow (10-11-2022), Zeocrack (10-10-2022)