Yao Zhao(deleted)
|
Re: how does arm-gcc use fp register?
|
Yao Zhao(deleted)
01/15/2009 9:51 AM
post20116
|
Re: how does arm-gcc use fp register?
> Our arm tools use a different ABI than most Linux arm toolschains. We follow
> apcs-gnu, and they typically follow the EABi (aapcs-linux). By default, our
> gcc uses -mapcs-frame which means the complaint apcs frame will be emitted.
> The only case the frame pointer is not required is in a leaf function.
>
> Regards,
>
> Ryan Mansfield
Thanks Ryan!
It seems that apcs is out of date? apcs save at least fp,ip,lr,pc but aapcs didn't when omit-frame-pointer is enabled. I
didn't understand why pc is saved in stack with apcs? what is that for? Also when I debug arm Linux binary gdb still
can show backtrace, how is that done if no fp is saved.
|
|
|