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,db8388c6b42d398 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: How do I go about creating a minimal GNAT runtime? Date: Fri, 27 Feb 2009 17:42:17 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <0zPnl.16758$YU2.10131@nlpi066.nbdc.sbc.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1235778139 23315 69.95.181.76 (27 Feb 2009 23:42:19 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 27 Feb 2009 23:42:19 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news2.google.com comp.lang.ada:4806 Date: 2009-02-27T17:42:17-06:00 List-Id: "Dimonax" wrote in message news:0zPnl.16758$YU2.10131@nlpi066.nbdc.sbc.com... ... > I'm a demoscene hacker. Anyone who knows that is knows that a demo > usually requires a very small footprint.(Look up the 4k demos that have > been posted up online.) > > While my goals arent that lofty, I would like to build a runtime that I > could fit into a demo that's less than 1024k if at all possible. 64k is > preferred. I can't answer this for GNAT, but there is no reason that an Ada runtime has to be hefty. The old Janus/Ada 83 compiler for MS-DOS could produce executables as small as 8K without any special tweaking (to get that size, a program couldn't use Text_IO or any tasking, though, so it wasn't that realistic). For Windows, things are bigger, but not that much. I see a 70K executable for a simple test program left behind in one of my test directories. That program uses Text_IO but not any tasking (tasking is automatically omitted from the executable if not used). The tasking runtime would push the size up to (I think) about 150K. But of course Janus/Ada was designed from the beginning to make code size the most important criteria; other compilers obviously have different goals. Trying to fit something into a goal it does not have isn't easy. Randy.