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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,146e39fd3921c79f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Per Sandberg Newsgroups: comp.lang.ada Subject: Re: binary size (gnat+win console) Date: Mon, 02 Aug 2004 06:21:38 +0200 Organization: Cuivre, Argent, Or Message-ID: References: Reply-To: per.sandberg@bredband.net NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1091420518 41320 212.85.156.195 (2 Aug 2004 04:21:58 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 2 Aug 2004 04:21:58 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en In-Reply-To: X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:2492 Date: 2004-08-02T06:21:38+02:00 Hi, I sounds like you are building with static runtimes and have debug symbols in the executable. Some months ago i did a test with code sizes for hello_world and using Ada compiled with GNAT C compiled with GCC and MS VC++ 6.0 and the size of the executables was about 10K bytes. I did not looke any further since the sizes from all three compilers was about the same when doing the same thing. * Building with full opimization. * Use dynamic linked runtimes. * Dont include debug symbols in the executable. (This is using GNATPro 5.03w) and i dont remember when dynamic runtimes was introduced in GNAT. From my experience: Most compilers produces executables of comparable sizes (+/- 15%) when doing the same thing * Linking the same way (Dynamic or static runtimes), * Having the same set of runtime checks enabled (Suppress all checks when copmparing Ada and C/C++). * With or without debug symbols, * Same optimsztion settings. /Per Andi wrote: > hello, > > a simple "hello-world" binary takes 219kb after building !? > there are ways for optimizations ?? > > best regards > > > --- > with Ada.Text_Io; > use Ada.Text_Io; > > procedure Hello is > begin > Put_Line("Hello World"); > end Hello; > --- > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada-france.org > http://www.ada-france.org/mailman/listinfo/comp.lang.ada >