On Thursday, 19 July 2007, at 02:51:17 (-0400),
Jeff Johnson wrote:
> Why not -g always? And is -O0 needed/recommended somewhere?
For maximum debugability, I use "-O0 -g3" which prevents optimization
of any kind (as such optimization can, by definition, move things
around and such, invalidating debugging info) and generates
line/symbol info for extra things like macros.
Michael
--
Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <mej@kainx.org>
Linux Server/Cluster Admin, LBL.gov Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"You know I'd fight for you, but how can I fight someone who isn't
even there? I've had the rest of you; now I want the best of you.
I don't care if that's not fair." -- O-Town, "All or Nothing"
Received on Sat Jul 28 01:27:34 2007