Mail Archives: djgpp/2003/05/13/11:30:07
Andre Chrcanovic <alrc AT task DOT com DOT br> wrote:
> CFLAGS = -mcpu=pentium -pg -c -imacros boot.def -D__DOS__ $(INCLUDES)
^^^^^^^^^^^^^^^^^
Setting aside those issues already raised by the other response, let me
comment on this line:
1) No debug flags (-g)? While not strictly needed for profiling, having
them in place should be your default. Who knows --- it might even solve
your problem.
2) That -imacros override smells fishy. It's impossible to tell what
it actually does without seeing that file, boot.def. This being in
your control, *you* have to make sure it doesn't interfere with the
profiling machinery.
> LNKOPTS = -L$(NPCDIR)/bin -L$(PRODIR)/bin -L$(LANDIR)/bin
> -L$(TCPDIR)/bin \
> -lnuc00 -lprotocol -llan_n -ltcpip
In case of doubt, those libraries may be the cause of your problem,
too. E.g. if they weren't built with -pg themselves, or they fiddle
with the timers on their own.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -