[gtkada] GtkAda programs size

Preben Randhol randhol at pvv.org
Mon Oct 21 12:47:14 CEST 2002


rino <yann.davin at wanadoo.fr> wrote on 21/10/2002 (12:33) :
> Hello,
> 
> I have a gullible question.
> 
> Why my gtkada program are so big ?
> For exemple size of helloworld2 with gtkada : 64.0k
> with native gtk : 8.0k

you can use -O2 and -largs -s f.ex. But why do you worry about this? Ada
has a lot of checks etc built into the language that C does not have.
The executables becomes a bit bigger, but this is unimportant. What you
should focus on is to make safer and better quality software that
doesn't crash and not if the executable is a bit bigger. Remember that
if your helloword is 64k in gtkada and 8 in C it doesn't mean that a
1Mb gtk program will be 8Mb in gtkada. At any rate your Ada program will
be easier to maintain and keep bugfree.


-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 «For me, Ada95 puts back the joy in programming.»




More information about the gtkada mailing list