comp.lang.ada
 help / color / mirror / Atom feed
From: Freejack <freejack@nowhere.net>
Subject: Re: Hello World 217Kb ?
Date: Mon, 29 Nov 2004 01:42:03 GMT
Date: 2004-11-29T01:42:03+00:00	[thread overview]
Message-ID: <pan.2004.11.29.02.14.43.500180@nowhere.net> (raw)
In-Reply-To: 41a3abd4$0$30691$ba620e4c@news.skynet.be

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
 




  reply	other threads:[~2004-11-29  1:42 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-23 17:25 Hello World 217Kb ? stephane richard
2004-11-23 17:51 ` Adrien Plisson
2004-11-23 18:14   ` stephane richard
2004-11-23 21:31     ` Adrien Plisson
2004-11-29  1:42       ` Freejack [this message]
2004-11-29  7:52         ` Alex R. Mosteo
2004-12-07 14:21           ` Warren W. Gay VE3WWG
2004-12-07 15:06             ` Adrien Plisson
2004-12-07 23:15               ` Warren W. Gay VE3WWG
2004-12-08  8:12                 ` Adrien Plisson
2004-12-08  8:49                   ` Vinzent 'Gadget' Hoefler
2004-12-09  3:37                     ` David Botton
2004-12-08 11:39                   ` Warren W. Gay VE3WWG
2004-11-23 22:38     ` Pascal Obry
2004-11-24 13:08       ` stephane richard
2004-11-27  2:23       ` Bini
2004-11-27  8:25         ` Pascal Obry
2004-11-29  0:45           ` Bini
2004-11-23 17:54 ` Martin Krischik
2004-11-23 18:01 ` Simon Clubley
2004-11-23 18:56 ` Jeffrey Carter
2004-11-23  7:01   ` Al Christians
2004-11-24 13:07     ` stephane richard
2004-11-23 20:27 ` Georg Bauhaus
2004-11-24  0:33   ` Jeffrey Carter
2004-11-24  2:27     ` Georg Bauhaus
2004-11-23 22:36 ` Pascal Obry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox