comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve Doiel" <nospam_steved@pacifier.com>
Subject: Re: gcov with GNAT 3.11p on Win 95
Date: 1999/07/08
Date: 1999-07-08T00:00:00+00:00	[thread overview]
Message-ID: <37854e5e.0@news.pacifier.com> (raw)
In-Reply-To: 7m30k3$5eu$1@neptunium.btinternet.com


Graeme English wrote in message <7m30k3$5eu$1@neptunium.btinternet.com>...
>I am trying to get gcov to work with a trivial Ada program (I am assuming
>this is possible since it comes with the distribution) but when I compile
>code with the -gprofile-arcs -ftest-coverage the linker complains with the
>following :-
>
>C:\gnat\lib\gcc-lib\pentium-mingw32msv\2.8.1\libgcc.a(_bb.o) : In function
>`_bb_init_prg':
>c:/gcc/build/../gcc-2.8.1/libgcc2.c(.text+0x10a7): undefined reference to
>`bzero'
>
>Also is there a version of gprof which can cope with Ada ?
>
>
I was able to resolve the bzero problem by creating the function below in a
file
named bzero.c, compiling with gcc -c bzero.c and then linking with the
object
using the following gnatmake
switches: -f  -fprofile-arcs -cargs -ftest-coverage -largs bzero.o

void bzero( char *ptr, int len )
{
  int ii;
  for( ii = 0 ; ii < len ; ii++ )
  {
    *ptr = 0;
    ptr++;
  }
}


BTW: I'm working on NT 4.0 with GNAT 3.11p

SteveD






      reply	other threads:[~1999-07-08  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-04  0:00 gcov with GNAT 3.11p on Win 95 Graeme English
1999-07-08  0:00 ` Steve Doiel [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox