Results 1 to 4 of 4
Hi
I am using the g++ compiler to compile the program on centos 5.
I would like to know
Whether the program compiled with -gdb3 or -g option run slows?
...
- 06-23-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
Program compiled with -ggdb3 switch run slow
Hi
I am using the g++ compiler to compile the program on centos 5.
I would like to know
Whether the program compiled with -gdb3 or -g option run slows?
like g++ -ggdb3 SampleProgram.cpp run slow in compare to compiled without -g option
Thanks
Ritesh
- 07-01-2008 #2Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
Any comments on this?
- 07-01-2008 #3
Well, I googled:
and discovered that, yes, folks expect the compiler to produce slower code when the -ggdb3 option is used.Code:ggdb3 slow
Exactly why, I don't know. Perhaps there are certain optimizations which are ordinarily compiled into the code but which are omitted if you're going to use gdb, because if they were included, then the debugging experience would be misleading and confusing.
Just a guess.--
Bill
Old age and treachery will overcome youth and skill.
- 07-01-2008 #4Just Joined!
- Join Date
- Jun 2008
- Posts
- 15
Thanks a lot.


Reply With Quote