comp.lang.ada
 help / color / mirror / Atom feed
From: Rugxulo <rugxulo@gmail.com>
Subject: Re: Does Ada still competitive?
Date: Fri, 13 Apr 2012 15:02:36 -0700 (PDT)
Date: 2012-04-13T15:02:36-07:00	[thread overview]
Message-ID: <7b003084-2d25-49a4-8b22-72c80d742a2a@h4g2000yqj.googlegroups.com> (raw)
In-Reply-To: 9131821d-9018-47ca-8739-17aa73fde8cc@m16g2000yqc.googlegroups.com

Hi,

On Apr 13, 8:15 am, Mark Lorenzen <mark.loren...@gmail.com> wrote:
>
> I won't comment on all your rambling, but focus on a feature of GNAT.
>
> On 13 Apr., 11:06, a...@att.net wrote:
>
> > Then later in the binder ("gnatbind") could remove any dead code from
> > precompiled Ada library packages, while linking that package, unlike most
> > other linkers which just copy the dead code into the program. But in order
> > to remove the dead code the binder ("gnatbind") would have to bypass calling
> > GCC linkers and preform the link/editing itself while removing the dead code
> > from the library packages. And course this removes the constant updating
> > of GNAT to every new version of GCC, which saves money and time.
>
> The GNU linker that is shipped with GNAT is perfectly able to remove
> unused subprograms and unused data from the executable. See
> http://docs.adacore.com/gnat-unw-docs/html/gnat_ugn_8.html#SEC103

This only works for ELF, I think. At least it doesn't work for DJGPP
COFF. Maybe your point was that it does (sometimes) work and could
work in all places, but that doesn't change the fact that it's not a
universal solution, sadly.

Perhaps the best workaround is just to put each subprogram in its own
separate file, and put all those compiled objects into a library. I
think others (FPC??) do similar on some targets. (And all the above is
probably doing is putting each subprogram in its own named section in
the object, stripping it at link time, e.g. XDS.)



  reply	other threads:[~2012-04-13 22:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11  3:18 Does Ada still competitive? Sunny
2012-04-11  7:20 ` tonyg
2012-04-11  7:21 ` gautier_niouzes
2012-04-11 13:13 ` svampab
2012-04-11 13:35   ` gautier_niouzes
2012-04-11 20:19 ` anon
2012-04-11 22:59   ` Yannick Duchêne (Hibou57)
2012-04-11 23:03   ` Yannick Duchêne (Hibou57)
2012-04-12  5:56   ` J-P. Rosen
2012-04-13  2:00     ` Robert Love
2012-04-13  9:06     ` anon
2012-04-13 12:12       ` Ludovic Brenta
2012-04-13 14:39         ` Georg Bauhaus
2012-04-13 13:15       ` Mark Lorenzen
2012-04-13 22:02         ` Rugxulo [this message]
2012-04-18  1:50           ` BrianG
2012-04-18  6:51             ` gautier_niouzes
2012-04-19 22:24               ` Yannick Duchêne (Hibou57)
2012-04-20 12:53                 ` Fritz Wuehler
2012-04-22  9:02                   ` gautier_niouzes
2012-04-21  0:52               ` BrianG
2012-04-21 10:53                 ` Pascal Obry
2012-04-21 10:54                 ` Pascal Obry
2012-04-15  7:00       ` J-P. Rosen
replies disabled

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