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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,16af87b269754773 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!news2.arglkargh.de!feeder.erje.net!newsfeed.utanet.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 01 Apr 2008 16:09:10 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbie Questions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <47f24206$0$23703$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 01 Apr 2008 16:09:10 CEST NNTP-Posting-Host: 7fb7faec.newsspool2.arcor-online.net X-Trace: DXC=l>18_5=22Z^U6b:FjPaGjQA9EHlD;3YcR4Fo<]lROoRQFl8W>\BH3YR@abHW3JDWMQ;9OJDO8_SKVNSZ1n^B98iZA8DLBQiPU1T X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:20720 Date: 2008-04-01T16:09:10+02:00 List-Id: Chris Yocum schrieb: > Hi Everyone, > I have been playing with GNAT and Ada for a little bit (GNAT 4.2.1 > (Ubuntu 4.2.1-5ubuntu6) on Ubuntu 7.10). I have successfully written a > doubly linked list with generics so I think I am starting to have a feel > for the language. However, my binaries have always seemed a bit large > compared to my C/C++ ones for similar data structures. I looked in the > Wikibook FAQ about it and it instructed me to look at the various > compiler options. The most important instruction should likely be to consider how many bytes are important, really. For very small Ada programs, the size of the run-time system might matter. > ~/adastuff/testhello$ gnat make -Phello.gpr > gcc-4.2 -c -O3 -gnatn -funroll-loops Loop unrolling is not necessarily reducing code size, if this is your goal? > -fPIC -fprofile-arcs Have you had a look at Chapter 9 of GCC 4.1, gcov? This chapter should also have some info about the __gcov_* messages.