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,6575b47ba54cee7c X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Reducing the size of executables produced by GNAT Date: Thu, 14 Feb 2008 19:19:47 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <9c0a949b-ce82-4eda-99c9-02aace675266@d21g2000prf.googlegroups.com> <47b4141b$0$364$9b4e6d93@newsspool2.arcor-online.net> <97c1d855-d59f-429a-b544-55bc82175024@h11g2000prf.googlegroups.com> <1f0279b6-26a3-4d29-bab1-227481d74afb@e6g2000prf.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1203034788 30142 192.74.137.71 (15 Feb 2008 00:19:48 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 15 Feb 2008 00:19:48 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:5z7KuYG9lweS2zWHW7RfTW77wJE= Xref: g2news1.google.com comp.lang.ada:19799 Date: 2008-02-14T19:19:47-05:00 List-Id: Hibou57 writes: > I'm trying to set up a personalized RTS,... I don't like to dampen your enthusiasm, but I really think you're headed in the wrong direction, here. Writing your own runtime is a big deal, even for a cut-down version. And you don't even know that large executable files cause long startup times -- you should at least measure that, if that's your concern. But anyway, if you go this way, first learn to build and modify both the compiler and the runtime (the existing one). >... but when I always get this > message : > >> test.adb:2:04: construct not allowed in configurable run-time mode To debug this, search the compiler sources to find where it prints this message, and figure out what it's doing. Do you know about the -gnatD and other related options? They could come in handy to figure out what's missing. > where test.adb is > >> procedure test is >> e: exception; >> begin >> raise e; >> exception >> when others => >> null; >> end; > > I'm not sure to understand, beceause this seems paradoxal : a custom > runtime is not allowed to implements every things ? There are things > that are not allowed with a custom runtime ? That's not what it means. It means something is missing. > I get this with "gnatmake --RTS=... test" > > This is strange. - Bob