Mail Archives: djgpp-workers/2000/04/27/04:43:01
On Wed, 26 Apr 2000, Eli Zaretskii wrote:
> > Date: Wed, 26 Apr 2000 11:20:40 -0400
> > From: DJ Delorie <dj AT delorie DOT com>
> >
> > It would be nice if gcc 3.0 worked out-of-the-box with DJGPP.
>
> Also, how about porting gcov? Any takers?
When I worked on line-level profiling, I also tried out the
'-fprofile-arcs' method used by 'gcov'. The problem was that the resulting
programs almost immediately died, presumably because of stack corruption.
The modifications done to the function entry/exit code and basic block
entry broke DJGPP programs completely. If memory serves, there was a
problem with some register used by this profiling method that didn't
properly get conserved by gcc. As the problem routinely killed the
debugger along with the debuggee, I never managed to find out what the
actual core problem was.
In other words: porting 'gcov' itself is not the problem, I think. It's
the gcc-internal support code that needs to be adapted to allow this code
to work.
The last version I tried was 2.8.1, though, so there is a chance that it's
been improved, in the meantime. The new default '-mschedule-prologue'
method of outputting function prologues and epilogues may help, in this
area.
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -