I’m use DDD as my debugger, and unfortunately, I think gcc (for Appbuilder -
Phab) is compiling with optimizations even though I am compiling in debug
mode. In the make screen, I can clearly see the “-O” option meaning
optimizations off, but this has no effect. Lines such as the following are
simply deleted.
void foo()
{
unsigned long x;
PtGetResource(…&x)
x = x & Pt_SET;
return;
}
In this case, the line with Pt_SET is deleted. I know the line should be
deleted with optimizations on. Anyone have any ideas?
y> I’m use DDD as my debugger, and unfortunately, I think gcc (for
y> Appbuilder - Phab) is compiling with optimizations even though I am
y> compiling in debug mode. In the make screen, I can clearly see the
y> “-O” option meaning optimizations off,
Oops, time for a manual check .
-O does not mean “optimizations off”.
-O means some, but not all, optimizations on. -O2 means more
optimizations on. -O3 means even more optimizations on. Etc.
If you don’t want any optimizations, you should not have any -O flag. That means optimizations off .
HTH!
–
Paul D. Smith <pausmith@nortelnetworks.com> HASMAT–HA Software Mthds & Tools
“Please remain calm…I may be mad, but I am a professional.” --Mad Scientist
These are my opinions—Nortel Networks takes no responsibility for them.
y> I’m use DDD as my debugger, and unfortunately, I think gcc (for
y> Appbuilder - Phab) is compiling with optimizations even though I am
y> compiling in debug mode. In the make screen, I can clearly see the
y> “-O” option meaning optimizations off,
Oops, time for a manual check > > .
-O does not mean “optimizations off”.
-O means some, but not all, optimizations on. -O2 means more
optimizations on. -O3 means even more optimizations on. Etc.
If you don’t want any optimizations, you should not have any -O flag. That means optimizations off > > .
or you can pass -O0
Regards,
Marcin
HTH!
–
Paul D. Smith <> pausmith@nortelnetworks.com> > HASMAT–HA Software Mthds & Tools
“Please remain calm…I may be mad, but I am a professional.” --Mad Scientist
These are my opinions—Nortel Networks takes no responsibility for them.
–
********** 2002 FIFA World Cup Korea/Japan ************