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,FREEMAIL_FROM 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!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Hello World 217Kb ? Date: Mon, 29 Nov 2004 08:52:31 +0100 Message-ID: <41AAD53F.3060408@mailinator.com> References: <41a377ea$0$25071$ba620e4c@news.skynet.be> <41a3abd4$0$30691$ba620e4c@news.skynet.be> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de F491LyW47c3RrQ61Wc1NowHGR2yYMenjCS1IU5qh7oMsCYtec= User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:6618 Date: 2004-11-29T08:52:31+01:00 List-Id: Freejack wrote: > On Tue, 23 Nov 2004 22:31:57 +0100, Adrien Plisson wrote: > > >>stephane richard wrote: >> >>>yes, it's in windows. There was no project however...just the adb file and >>>I compiled it....what settings do you have? >> >>i don't really know, i compiled it using GPS. i asked to remove debug >>informations and to strip executable. >> >>also, i asked for a static runtime, which lead to a 67kB large file. i >>suspect it would be less with a shared runtime. >> >>btw, it's very strange that the executable still needs "msvcrt.dll" >>which is the SHARED c runtime of microsoft. for comparison, i did the >>same thing in C++ using Visual Studio and STL. the executable is 60kB >>large, but only needs kernel32.dll and NO C runtime dll. >> >>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.