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, pointers are greatly appreciated.