🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42266

Does -g option affect generated code?

#42266
From: Tim Bird
Date: Sat, 06 Jan 1996 00:00
11 lines
1019 bytes
Forgive me if this is a newbiew question.  I would like to know if using the
-g option to generate debug symbols will change the way the code is compiled.
I know that some compilers do this to "straighten" out the code to make it
easier to debug.  I have a situation where I did not build the code originally
with debug symbols, but I have a pesky bug that is sensitive to recompilation.
(-O flags affect it).  I would like to be able to recompile with debug symbols,
but with exactly the same code as I have now.

Thanks,

Tim Bird
Technical Details
Message-ID: <4cmi1l$hnk@caldera.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bd9280a1fbe374b0,start
X-Google-Attributes: gid11318c,public
From: Tim Bird <tbird>
Subject: Does -g option affect generated code?
Date: 1996/01/06
Message-ID: <4cmi1l$hnk@caldera.com>
X-Deja-AN: 134325078
content-type: text/plain; charset=us-ascii
organization: Caldera, Inc.
x-url: news:gnu.gcc.help
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 1.1N (X11; I; Linux 1.2.13 i586)