Skip to contentSkip to conversation

compiling kernel with debug and optimization

DISCUSSION Andi Kleen 1 participant 1 message Feb 11, 2003 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20030210111151.31800.qmail@web20418.mail.yahoo.com.suse.lists.linux.kernel

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#2 lore raw
Quoted 8 lines · Pavel Machek

Hi!

Quoted 4 lines

Does compiling with -g option degrade performance? IMO it should NOT.

If that's true, then why dont we compile kernels with both -g and -O2 always?

Build with -g takes *a lot* of diskspace, like 1Gig.

With gcc 3.x and its dwarf2 default.

It's a lot smaller when you compile with -gstabs (on i386) stabs works as well for 32bit, but is much more compact.

-Andi