X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <000b01c1875a$164a77b0$1400a8c0@alex> From: "Alex Oleynikov" To: Subject: Re: Profiling Application Date: Mon, 17 Dec 2001 19:22:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Reply-To: djgpp AT delorie DOT com Thanks, your advice worked fine! Alex >>You got it partly wrong. '-a' is not really for profiling: it's for >>line-by-line execution counting. Try again, without '-a', and you'll >>be better off, I guess. If you really want execution counts per >>source line, I recommend using "gcov" and gcc options "-fprofile-arcs >>-ftest-coverage" instead. >>IIRC, -pg and -a don't work together at all. That's the reason why you >>didn't get the gmon.out file. Note that you have to *link* with -pg, >>too, not just compile.