comp.lang.ada
 help / color / mirror / Atom feed
From: Caffeine Junky <nospam@hotmail.com>
Subject: Re: Creating really small binaries?
Date: Tue, 18 Jun 2002 20:01:56 GMT
Date: 2002-06-18T20:01:56+00:00	[thread overview]
Message-ID: <UkMP8.71535$R61.21247@rwcrnsc52.ops.asp.att.net> (raw)
In-Reply-To: u1yb4zghs.fsf@gsfc.nasa.gov

On Tue, 18 Jun 2002 12:41:35 -0400, Stephen Leake wrote:


 Hmm, XLib is presumably a huge C library, so you've changed your mind on
> that?
> 
> Writing your own GUI on top of XLib may not be the best way to make the
> in-memory image size smaller. You may not be as good a GUI programmer as
> the people who wrote the existing layers :). I know I'm not!
> 
> In addition, if the GUI layers are in shared libraries, are you counting
> them as part of "your" executable image size? If not, then use as many
> shared libraries as possible!
> 

Good point. I must admit to being influenced by the guys over at
radsoft.net(They wrote a windows explorer replacement in about 14kb). My
basic assumption(although I could be mistaken) is that by avoiding
additional layers(such as Gnome and KDE) it'll be easier to keep the size
down and the speed up.

> Define the requirements for your application. Define the features you
> will need to meet those requirements. Design a system that is robust,
> easy to test, and probably efficient in terms of in-memory image size.
> while (not working) loop Compile it. Test it. end loop. See how big it
> is. Look for places to make it smaller.
> 
> If you say more about your specific application, it might be possible to
> give more precise help.
 
Generally I'm looking for some rules of thumb that I can apply to small
projects. Such as a Database UI, or a Text Editor, etc... 
Right now I'm working on what will hopefully be a decent "E-Book" reader
that I could patch into a back-end database for storing notes,
annotations, bibliographies, etc... Something that can be used for very
large texts.(An Encyclopedia, The Bible, Collected Works of Shakespear,
The Common Lisp Standard, etc...).

As you can imagine, the GUI work on this one would be rather extensive. I
plan on Open Sourcing it, so people will be free to critique it. 

Anyways, I hate having applications/libraries that just suck up oodles of
system resources all on thier own. I want to prevent that, and keep the
application running smooth as a babies butt. GC is one way to go about
it, and that's not out of the question. But before going into
implementing GC, I try to make sure the rest of the app is as efficient
as I can possibly make it.

I hope that helps a little.


Caffinator



  reply	other threads:[~2002-06-18 20:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-18  6:53 Creating really small binaries? Caffeine Junky
2002-06-18 16:41 ` Stephen Leake
2002-06-18 20:01   ` Caffeine Junky [this message]
2002-06-19 15:50     ` Stephen Leake
2002-06-24 19:23   ` Robert C. Leif
2002-06-26  8:08   ` Robert Dewar
2002-06-26 15:09     ` Stephen Leake
2002-06-28 22:34       ` Florian Weimer
replies disabled

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