am i right

From: funtoosh (a_gilotra_at_yahoo.com)
Date: 04/25/04


Date: 24 Apr 2004 23:45:08 -0700

Hi

1.
I compile my source code using gcc 2.95.3 and I use "-g" option along with
O2 ( optimization flag ). I then "strip" the executable and give it a run.

2.
And then I compiled same source code _without_ "-g" option and "strip" the
executable (even though not useful) and give it a run.

I found that performance of the code is better when I dont use "-g".

How is this possible ?
Does -g hampers the -O2 level of optimations ?

Machine : RH9
Kernel : 2.4.20-20.x

-A



Relevant Pages

  • Re: How do I install this missing library?
    ... you really should be carefully following LSTC's installation ... libg2c is part of gcc. ... to tell a newcomer to compile. ... like the source code to GNU tar, and make sure you understand what's ...
    (comp.os.linux.misc)
  • Re: C++/TCL Need Solution to Compile Error c2784
    ... There's always the "Platform SDK" from MSDN if you need the window.h stuff, ... Since I'm using the Command Prompt rather than the GUI to compile the ... I then tried to compile your source code and I kept getting the same ...
    (comp.lang.tcl)
  • Re: sound card problem
    ... I do not know what you mean by "And you have source code ... checking for gcc... ... checking for C compiler default output file name... ... with kernel build... ...
    (Ubuntu)
  • Re: Module doesnt get inserted
    ... I have the source code for both these kernels under /usr/src ... "Peter T. Breuer" wrote in message ... > Your running kernel is irrelevant to the compilation. ... If so compile against that source code. ...
    (comp.os.linux.development.system)
  • Re: Debugging Newbie Question
    ... The CLR does not understand this source code and so before it ... ASP.NET, however, ASP.NET will compile your page's source code and cache ... the debugger will have IL and x86 created from ... in release mode assemblies. ...
    (microsoft.public.dotnet.faqs)