This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How does the gcc -g option affect performance?


Hi,

Could someone please help me with the following?

According to the gcc man page, the -g option "produces
debugging information in the operating system's native
format".

Does anyone know what kind "debugging information" gcc
produces with the -g option? The binary evidently gets
bloated, but does gcc actually generate extra
executable code, or does it merely add static
information on symbols, lines etc.? Most importantly,
apart from issues caused by large program size, is
there a performance penalty to be paid for programs
compiled using -g? 

Thanks in advance!

Regards,
Vishnu.


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]