On Jun 26, 2001, Olivier Nicole <[EMAIL PROTECTED]> wrote:

> Does it make the things run slower if a program is ALWAYS compiled with -g?

Not when using GCC.  In fact, that's the reason why configure uses
CFLAGS="-O2 -g" by default, when the compiler is GCC.  GCC generates
exactly the same code, regardless of -g, and you can always strip off
debugging information if you wish.  Debugging information will only
take up disk space, but since it's not in loadable sections, it won't
even use additional memory when you run the program.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to