[gtkada] [ANNOUNCE] LinXtris 0.1a - A Tetris Clone

Preben Randhol randhol at pvv.org
Sat Jun 21 10:19:40 CEST 2003


Thomas De Contes <d.l.tDeContes at free.fr> wrote on 21/06/2003 (10:08) :
> thank you :-)
> 
> so, gnat uses to create Dynamically linked binaries, and we can put
> -largs -s to make it creating statically-linked binary, isn't it ?

-bargs -static

> why is it a disadvantage that the needed libraries may not be present
> on the target machine ??? 

static programs are less suitable in a multiuser system or a system
where several applications use the same code. I mean if you had 10
different Ada programs or 10 users using the same program it would be
far better to have a dynamical program which can use the libraries. So
10 static programs may eat 4 Mb RAM each => 40Mb while the dynamic can
take say 2Mb => 20Mb and the library takes perhaps 2Mb  resulting in
22Mb.

Until gnat gets a part of gcc which is distributed on the major Linux
distributions (looks to happen now) it is probably smart to have a
static binary so people can "try out" the software. However I expect
that in the future one should make .rpm and .deb packages so that one
can make dynamic programs easily installable. :-)

> i have to program a proprietary software ; if i've right understood, i
> need to make statically-linked binary to allow users to put it on any
> computer, isn't it ?

No, but you should read about this on www.fsf.org and search the net. I
really wish some atterney could write "Software licenses and
implications for Computer Dummies" so one could easily understand what
to do. Maybe there already is one?

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



More information about the gtkada mailing list