Hi,
in the previous days I've seen a posting where someone compiled
his code with
c++ -O2 -Wall -fconserve-space -ggdb foo.cc
The code looked like this:
...
cout << "Starting" << endl;
...
for (sptr = l, pch = l;
(strchr(pch, ';') ?
pch = strchr(pch, ';') :
pch = strchr(pch, '\r')) > 0;
sptr = ++pch)
{
*pch = 0;
cout << sptr << endl;
}
...
When the operator executed the code, he get this debug
output:
% [EMAIL PROTECTED]:/tmp/foo$ ./a.out
% Starting
% l=0xbfbfe8a0, pch=0xbfbfe8a5
% hello
% l=0xbfbfe8a0, pch=0xbfbfe8ab
% world
% l=0xbfbfe8a0, pch=0xbfbfe8b0
% this
...
When I compile my code with the same options and execute it,
I don't get this detailed output with all the addresses. Any
ideas how to get it?
Regards,
Chris
_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus