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!news1.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s53.POSTED!53ab2750!not-for-mail From: Freejack Subject: Re: Hello World 217Kb ? User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Message-ID: Newsgroups: comp.lang.ada 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 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 67.164.245.153 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s53 1101692523 67.164.245.153 (Mon, 29 Nov 2004 01:42:03 GMT) NNTP-Posting-Date: Mon, 29 Nov 2004 01:42:03 GMT Organization: Comcast Online Date: Mon, 29 Nov 2004 01:42:03 GMT Xref: g2news1.google.com comp.lang.ada:6610 Date: 2004-11-29T01:42:03+00:00 List-Id: 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. Usually what you need (at least far as I've discovered) is a customized C library to link with, OR meticulous representation packages in your project. For example, I've been doing some demoscene hacking, and linking with the static Diet libc (as opposed to the vanilla glibc) cuts the size of the executable by at least %60 to %80. I don't know if there are similiar libraries available for Windows, but one should be able to cut their executable size dramatically by prudent use of customized libs and static linking. 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. ;-> Freejack