Re: ARM calling conventions generated in gcc with different optimizations

2013-09-23 Thread Richard Earnshaw
On 23/09/13 16:23, Vasily Golubev wrote: > Thank you a lot for your answer, Mr. Radhakrishnan! > > I think it was my mistake to use phrase "I will save LR at some > place"... I mean I can catch the first instruction of any function > precisely. And save LR value at that time to my local storage. A

Re: ARM calling conventions generated in gcc with different optimizations

2013-09-23 Thread Vasily Golubev
Thank you a lot for your answer, Mr. Radhakrishnan! I think it was my mistake to use phrase "I will save LR at some place"... I mean I can catch the first instruction of any function precisely. And save LR value at that time to my local storage. And I also can catch the first instruction after exi

Re: ARM calling conventions generated in gcc with different optimizations

2013-09-23 Thread Ramana Radhakrishnan
> 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 gener