[gtkada] What is: pragma Unreferenced ?
David C. Hoos
david.c.hoos.sr at ada95.com
Fri Jul 18 14:13:39 CEST 2003
----- Original Message -----
From: "Preben Randhol" <randhol at pvv.org>
To: "GtkAda Mailinglist" <gtkada at lists.act-europe.fr>
Sent: Friday, July 18, 2003 4:10 AM
Subject: Re: [gtkada] What is: pragma Unreferenced ?
> Preben Randhol <randhol at pvv.org> wrote on 17/07/2003 (15:19) :
> > What does this mean? I see that when I use gnat 3.3 (gcc) the executable
> > size of my app goes from 73kb to 358kb. All .o files are smaller with
> > 3.3 than 3.14p while .ali files are bigger. But this huge difference in
> > executable size what is causing this? If it because of the pragmas above
> > (which 3.3 seem to accept)?
>
> What I have found out is that gnat-3.3 does not link the libgnat shared
> but includes it into the source code. I cannot figure out how to get it
> to be linked as shared. -bargs -shared don't help. Anybody else
> experienced this?
If your linker options (either those you explicitly provide, or ones
generated by the GNAT tools) specify a library that doesn't exist (in the
proper place) in shareable form (i.e., *.so), then the static library will
be linked in.
*.a libraries cannot themselves be linked dynamically (shared).
>
> --
> Preben Randhol -------------- http://www.pvv.org/~randhol/Ada95 --
> «For me, Ada95 puts back the joy in programming.»
> _______________________________________________
> gtkada mailing list
> gtkada at lists.act-europe.fr
> http://lists.act-europe.fr/mailman/listinfo/gtkada
>
More information about the gtkada
mailing list