ARM calling conventions generated in gcc with different optimizations

Ramana Radhakrishnan ramana.gcc@googlemail.com
Mon Sep 23 15:07:00 GMT 2013


> And my main question is it possible to rely on this fact when
> compiling with gcc and different levels of optimizations?

No it is not , the compiler (especially trunk) is free to use LR as a
temporary after epilogue has been generated at higher optimization
levels.


> Is it
> possible to generate some straightforward heuristic to detect this
> evens (with\without debug info)?

With debug information you could in theory work this out but not
without it especially if LR were used as a temporary.

regards
Ramana


>
> Thank you in advance for any suggestions!
>
> --
> Best Regards,
> Vasily



More information about the Gcc mailing list