Re: am i right

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 04/25/04


Date: Sun, 25 Apr 2004 17:05:55 -0000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

[ Followup-To: cols ]

In comp.os.linux.setup Jean-David Beyer <jdbeyer@exit109.com> suggested:
> Michael Heiming wrote:

[ compile code with gcc using -g & -O2 ]

> >>>Does -g hampers the -O2 level of optimations ?
> >
> > [..]
> >
> >
> >>So the only problem with -g was larger object files, because the symbol
> >>table was in them. But the OS did not load the symbol table (only gdb
> >>looked at it), so it did not waste RAM with it.
> >
> >
> > From 'man gcc', you get the feeling that albeit gcc can work with
> > -g and -O, at the same time, unlike many other C compiler, it
> > might return unexpected results.
> >
> Not the impression I get. What they are referring to is that _gdb_ may
> return unexpected results, not that _the program_ will return unexpected
> results.

Yep, that's what I understood from 'man gcc' but didn't make
clear.;(

[ great explanation SNIPPED ]

Regards

-- 
Michael Heiming (GPG-Key ID: 0xEDD27B94)
Remove +SIGNS and www. if you expect an answer, sorry for 
inconvenience, but I get tons of spam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFAi+/zAkPEju3Se5QRAvQeAJ9ihzqtNTSpasREWiFocUEq1AcoJgCeI0+k
xBuaqmHR9cadjW8aQubF4Po=
=8+Ca
-----END PGP SIGNATURE-----


Relevant Pages