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,c4ab69bf7d3638f1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.78.MISMATCH!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Differences between gnat 4.4.5 and 4.5.1 Date: Thu, 10 Mar 2011 22:39:54 +0100 Organization: A noiseless patient Spider Message-ID: <87mxl2vemt.fsf@ludovic-brenta.org> References: <86tyfa3bmz.fsf@gareth.avalon.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx03.eternal-september.org; posting-host="9o2oV4VCkMeKEi3T6Lsyfw"; logging-data="1429"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18u/yMiUfWaLNmvAe3LTI7S" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:SNfgHN1dJV3hz2f7FHLsQWi/1AA= sha1:ZCqbXQ5eHmdI3YQ9UARuVGObt8U= Xref: g2news2.google.com comp.lang.ada:19037 Date: 2011-03-10T22:39:54+01:00 List-Id: Mart van de Wege writes: > Julian Leyh writes: > >> On 10 Mrz., 07:01, Noel Duffy wrote: >>> I wonder whether what I am seeing is a result of a difference in gcc-gnat >>> version, a difference in distribution packaging, or possibly a >>> combination of both. Is there anyone using Fedora here who could possibly >>> shed any light on this? >> >> What do "file" and "ldd" tell you about them? Are the sizes more >> similar if you "strip" them? > > I'd be inclined to think stripping may be the culprit. Debian is well > known to use stripped binaries by default, so I wouldn't be surprised > if the various toolchains are set up that way as well. > > IIRC, this is what led them to stop being the default GNU distro, as > the GNU folks like their binaries with debug info by default. And > since Fedora is mostly a Red Hat project, and Red Hat has absorbed a > *lot* of the GCC devs via Cygnus, I'd expect Fedora to *not* strip by > default. > > Ludovic could probably answer that one in his sleep. No, not in my sleep :) Stripping means removing debugging symbols from an executable. For the debugging symbols to be present in the first place requires an explicit -g option. The "default" you speak of is that contained in most upstream Makefiles. Debian *packaging scripts*, by default, passes -g to the compiler and then strips the executables, moving the debugging symbols to a separate -dbg package (this is in fact mandatory for the Ada libraries...). But packaging scripts have nothing to do with the OP's way of calling GCC. Personally I'd be inclined to think the difference in size is due to the compiler, not differences between distributions. I'd have to check with gnat-4.5 when it reaches a usable state. -- Ludovic Brenta.