How can I get stack return address of a parent c function. On gnu gcc, there is __builtin_return_address which does it, Is there a way if I am using sun cc compiler? Ideas, pointers are highly appreciated.
I know that we can use __builtin_return_address to get the stack return address of the parent function, if the code is compiled using gnu's gcc. Is there a way to find the address using sun cc compiler. Or if there is no direct function, then is there a way I can achieve similar result? Ideas...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.