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,a30a877db63b60c0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!feed.cgocable.net!read2.cgocable.net.POSTED!53ab2750!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Hello World 217Kb ? References: <41a377ea$0$25071$ba620e4c@news.skynet.be> <41a3abd4$0$30691$ba620e4c@news.skynet.be> <41AAD53F.3060408@mailinator.com> In-Reply-To: <41AAD53F.3060408@mailinator.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 07 Dec 2004 09:21:21 -0500 NNTP-Posting-Host: 24.150.168.167 X-Complaints-To: abuse@cogeco.ca X-Trace: read2.cgocable.net 1102429221 24.150.168.167 (Tue, 07 Dec 2004 09:20:21 EST) NNTP-Posting-Date: Tue, 07 Dec 2004 09:20:21 EST Organization: Cogeco Cable Xref: g2news1.google.com comp.lang.ada:6817 Date: 2004-12-07T09:21:21-05:00 List-Id: Alex R. Mosteo wrote: > Freejack wrote: >> On Tue, 23 Nov 2004 22:31:57 +0100, Adrien Plisson wrote: ... >>> maybe someone with more experience with GNAT can explain why the C >>> runtime is still needed. >> >> A runtime environment may or may not be necessary(usually NOT) for either >> Ada or C. I'm currently working on my own space/speed optimized Ada libs >> for my own projects. Wanna see just how low I can go. Stripping out the >> runtime is saving plenty of resources, but it's also making me work a bit >> harder on not screwing up. So beware. ;-> > > The following excerpt from GNAT reference manual can be of interest: > > pragma No_Run_Time > Syntax: pragma No_Run_Time; > > This is a configuration pragma that makes sure the user code does > not use nor need anything from the GNAT run time. This is mostly useful > in context where code certification is required. Please consult the GNAT > Pro High-Integrity Edition User's Guide for additional information. Just be aware that pragma No_Run_Time comes at a heavy price. You would have to give up several things, including: - The ability to do String & "Some string" & ... (this requires a runtime secondary stack) - Scalar'Img or type'Image(type) won't compile. - Unconstrained array assignments like: declare S : String := Some_String_Func(Args); begin This list is incomplete, but I found No_Run_Time so restrictive, that even for O/S projects, I didn't find this to be very useful! -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg