[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

__builtin_return_address and -fomit-frame-pointer

From: jbmailbox
Subject: __builtin_return_address and -fomit-frame-pointer
Date: 3 Jan 2007 00:07:44 -0800
User-agent: G2/1.0

Dear all,

I am planning to use to __builtin_return_address to get the caller's
address of a function.  My understanding is that this built-in function
uses frame pointers (PUSH EBP to the stack) to track caller functions
of multiple levels.

If this is correct, does that also mean omit-frame-pointer compiler
option has to always be OFF when __built_return_address(1) is used?

Best Regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]