From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,24f6ac49b18550dd X-Google-Attributes: gid103376,public From: "Herv� BITTEUR" Subject: Re: Profiling tool under WinNT ? Date: 1999/11/04 Message-ID: <382160BD.7F415C4C@alcatel.fr>#1/1 X-Deja-AN: 544333340 Content-Transfer-Encoding: 7bit References: <381EAC04.6FAEE337@alcatel.fr> <381F6DE9.6B46E8FD@research.canon.com.au> <01bf25cb$a5155250$022a6282@dieppe> <7vr64t$h6o$1@news.doit.wisc.edu> To: Mumit Khan Content-Type: text/plain; charset=us-ascii Organization: ALCATEL Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-04T00:00:00+00:00 List-Id: Thank you for your answer. However, I received rather inconsistent informations about whether or not there is a working version of gprof for windows NT. A careful reading of your answer tells me that there should be one. Since GNAT now uses Mingw, I need a Mingw gprof. Is there an already built version somewhere ? (I'm looking for a free version, sigh). Or should I try to build it on my own ? Where could I get the needed source material ? Thanks for any help. --Herve Mumit Khan wrote: > In article <01bf25cb$a5155250$022a6282@dieppe>, > Pascal Obry wrote: > > > >Gprof has not been ported to NT yet. > > > > The tool "gprof" works just fine on NT, so perhaps you're thinking about > gcrt?.o support for NT? If so, it's worked in Cygwin for a while, and > also works for Mingw (native windows32, so no 3rd party extras needed). > > Here's some ChangeLog entries from Cygwin winsup: > > Sun Aug 15 19:11:49 1999 Mumit Khan > > * gcrt0.c (__eprol): Avoid namespace pollution. > (_monstartup): Turn into a constructor function and prevent multiple > invocations. > > Fri Jul 16 15:09:50 1998 Stan Cox > > * (gcrt0.c, gmon.c, profil.c, mcount.c, gmon.h, profil.h, > config/i386/profile.h): New files for gprof cygwin support. > Some code contributed by Tim Newsham for Secure Networks, Inc. > * Makefile.in (LIBGMON_A, GMON_START, GMON_OFILES): New for gprof. > > With just a few very minor tweaks, it works for Mingw as well. Please > contact me directly if you need more information. > > If you choose to use the gcrt0.o from Cygwin source distribution, linking > against it puts your code under GPL unless you buy a commercial license > from Cygnus of course. > > Of course, whatever GCC backend you're using will have to have the > profiling support for x86-win32. Don't remember if went in 2.8.x > tree or not. > > Regards, > Mumit