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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7de420fed037ecc5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!homer!news.glorb.com!news-spur1.glorb.com!news.glorb.com!newsfeed.esat.net!feeder.news.heanet.ie!feed4.jnfs.ja.net!jnfs.ja.net!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problems with gcov Date: Thu, 01 Feb 2007 06:39:19 +0000 Organization: Pushface Message-ID: References: <1170165978.983437.308430@v33g2000cwv.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1170311959 2424 62.49.19.209 (1 Feb 2007 06:39:19 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 1 Feb 2007 06:39:19 +0000 (UTC) Cancel-Lock: sha1:Z2M7j3ni/kFE+hbvYB3cn4z7fKk= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:8806 Date: 2007-02-01T06:39:19+00:00 List-Id: igor.prakljacic@gmail.com writes: > % gnatmake -fprofile-arcs -ftest-coverage helloworld.adb > gnatgcc -c -fprofile-arcs -ftest-coverage helloworld.adb > gnatbind -x helloworld.ali > gnatlink helloworld.ali > > % ls > helloworld helloworld.adb helloworld.ali helloworld.bb > helloworld.bbg helloworld.o > > % ./helloworld > Hello World > > % ls > helloworld helloworld.adb helloworld.ali helloworld.bb > helloworld.bbg helloworld.o GNATs based on GCC 2 (eg, GNAT 3.15p) use the .bb and .bbg files, and the output would be in .da files. GNAT GPL 2006 (on Mac OS X at any rate) uses the .gcno and .gcda files. Ah! On this machine I get $ gnatmake -fprofile-arcs -ftest-coverage helloworld.adb -f gcc -c -fprofile-arcs -ftest-coverage helloworld.adb gnatbind -x helloworld.ali gnatlink helloworld.ali -fprofile-arcs -ftest-coverage so the gnatlink call is different ...