Re: How to force all functions to have full prologs and epilogs in optimized code?

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

 



On Wednesday 08 October 2008, Yuri wrote:
> I debug an application and need to know which function calls were made.
> Many function though not inlined have optimized away epilogs, replaced
> by a jump.
> And google-perftools tool for example doesn't pick such functions up.
>
> Is there an option in gcc forcing it to emit full prologs/epilogs even
> for optimized code?

I'm not sure, but I think tools such as google-perftools look at the stack 
frames, which make the option '-fno-omit-frame-pointer' your first pick. You 
can also try '-mprologue-epilogue'.

Check the gcc manual or the info pages for more 'debugging-friendly' options.

-- 
Mihai Donțu
unices.bitdefender.com

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux