comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier.DeMontmollin@maths.unine.ch (Gautier)
Subject: Re: Looking for a smart linker for GNAT/DOS
Date: 1997/04/21
Date: 1997-04-21T00:00:00+00:00	[thread overview]
Message-ID: <1997Apr21.105404.5917@news> (raw)
In-Reply-To: dewar.861372455@merv


> I'm thinking about the LAPACK library in FORTRAN, too: in many real projects,
> only a few from the thousends LAPACK routines are used.
> A GNAT/DOS implementation of it would produce executables of >20 megas
> (and certainly just wouldn't run on most machines),
> although they should be of a few hundreds of K if linked by a good linker!
> 
>    You are confusing virtual and physical memory here. Just because an
>    EXE is large does not mean that you needs lots of physical memory in
>    your working set to run the program, so you are probably quite wrong
>    about it not running on most machines.

I meant running at a reasonable speed, too. If your computation takes
100 days instead of 1 because of waste of memory (=> need of virtual
memory), oooch!

(...)
>    There are two solutions (besides a smart linker). The first is to
>    structure the interface as a set of separate Ada 95 child units,
>    rather than one monolithic spec. After all the original Fortran
>    routines are separate units, and a Fortran program using LAPACK
>    works fine even without a smart linker.

That's true, but if you have to mention explicitly all the part
of LAPACK you are using, you won't convince any Fortran programmer to
change... (Do you know Modula-2, where the ``importation'' part is
as long as the programmes themselves ?)

> 
>    The second is to put the interface in a DLL, as described above.
>    These days, that is getting to be a more and more attractive
>    solution, and it may well be that this is the way to go, since
>    it is more convenient for the Ada programmer than splitting the
>    interface into separate units.

Good idea if no better solution.

> 
>    This is not to say that a smart linker would not be useful, just that
>    with modern systems, the need for smart linkers is less than it used
>    to be, which makes it even less likely that you will find such beasts
>    around.

Alas...
       
G.




  parent reply	other threads:[~1997-04-21  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1997Apr15.202909.5879@news>
1997-04-16  0:00 ` Looking for a smart linker for GNAT/DOS Samuel Tardieu
1997-04-16  0:00   ` Gautier
1997-04-18  0:00     ` Robert Dewar
1997-04-19  0:00       ` Geert Bosch
1997-04-22  0:00         ` Robert Dewar
1997-04-28  0:00         ` Larry Kilgallen
1997-04-19  0:00       ` Fergus Henderson
1997-04-21  0:00         ` Robert Dewar
1997-04-21  0:00           ` Gautier
1997-04-23  0:00             ` Robert Dewar
1997-04-24  0:00               ` Gautier
1997-04-26  0:00                 ` Robert Dewar
1997-04-27  0:00                 ` Geert Bosch
1997-04-29  0:00                   ` Gautier
1997-04-21  0:00       ` Gautier [this message]
1997-04-21  0:00       ` Mats Weber
1997-04-23  0:00         ` Robert Dewar
     [not found] ` <dewar.861173085@merv>
1997-04-17  0:00   ` Gautier
1997-04-17  0:00     ` Robert Dewar
1997-04-18  0:00       ` Gautier
1997-04-19  0:00         ` Robert Dewar
replies disabled

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