comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
Subject: Re: Ada  "library only" compiler ?
Date: Sun, 22 Jul 2012 09:04:34 +0200
Date: 2012-07-22T09:04:33+02:00	[thread overview]
Message-ID: <500ba601$0$6174$ba4acef3@reader.news.orange.fr> (raw)
In-Reply-To: <6ad7682d-0fd7-472d-a305-99074cb4f7d8@googlegroups.com>

Le 22/07/2012 06:59, Shark8 a �crit :

> No, not really. The whole point of dynamic- vs. static-linking
> [libraries] is that in the case of the former it eliminates the need
> to recompile [your application] if the underlying DLL's
> implementation is changed, with static-linking this is not so, any
> change in the library mandates a recompile/relink of your
> application.

Yes I know, but we are talking about API there. If the API change the
fact that we are using a DLL instead of plain C code does not change
this fact.

> With interfacing to another language the compiler has to know certain
> things about that language, most specifically symbol-generation,
> argument ordering and calling-conventions. {This is the whole reason
> for the convention pragma.}

Likewise for DLL, the convention must be Stdcall. And for C it can be
defined as C, Stdcall (to name only those 2).

> Not necessarily. So long as the Win32 API DLL presents the same
> interface to the world its internals could be ASM, Prolog, Ada, LISP,
> etc.

So long that the C code provides the same API with the same convention...

> And so long as the compiler is able to generate calls/returns to
> properly interface with the DLL the actual language of the compiler
> doesn't matter either.

Right.

Again at the API level I really don't see what the difference here. The
API definition has nothing to do with DLL. The API is defined by the
vendor or the library implementer. Then this code can be delivered
statically or as a shared library, it is only a way to encapsulate the code.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




  reply	other threads:[~2012-07-26 15:00 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-20 20:05 Ada "library only" compiler ? Patrick
2012-07-20 21:11 ` Niklas Holsti
2012-07-20 21:47   ` Ludovic Brenta
2012-07-20 22:25   ` Peter C. Chapin
2012-07-20 22:51     ` Ludovic Brenta
2012-07-21  0:32       ` Randy Brukardt
2012-07-21 12:39         ` Pascal Obry
2012-07-22  4:59           ` Shark8
2012-07-22  7:04             ` Pascal Obry [this message]
2012-07-22 10:17           ` Florian Weimer
2012-07-24  1:54           ` Randy Brukardt
2012-07-24 16:50             ` Pascal Obry
2012-07-24 18:01               ` Vasiliy Molostov
2012-07-24 21:30                 ` Pascal Obry
2012-07-25  6:33                   ` Vasiliy Molostov
2012-07-25 23:44                   ` sbelmont700
2012-07-25 23:34               ` Randy Brukardt
2012-07-21 11:05     ` Niklas Holsti
2012-07-20 23:30   ` Patrick
2012-07-21 16:47     ` Niklas Holsti
2012-07-21 17:47       ` Patrick
2012-07-21 19:22         ` Simon Wright
2012-07-21 19:38           ` Patrick
2012-07-21 22:53         ` Brian Drummond
2012-07-22  3:25           ` Patrick
2012-07-22 17:54             ` Brian Drummond
2012-07-22 17:59               ` Brian Drummond
2012-07-22 18:44                 ` Patrick
2012-07-22 21:03                   ` Brian Drummond
2012-07-25 19:10                   ` J-P. Rosen
     [not found]               ` <m2a9yrsbf5.fsf@nidhoggr.home>
     [not found]                 ` <jui36a$hs0$1@dont-email.me>
2012-07-23 10:10                   ` Simon Wright
2012-07-24 10:55                     ` Brian Drummond
2012-07-22 21:25             ` Niklas Holsti
2012-07-22 22:00               ` Patrick
2012-07-22 21:18         ` Niklas Holsti
     [not found]   ` <olpj085ii9fpifpligh6jerghoaieiim1d@invalid.netcom.com>
2012-07-20 23:38     ` Patrick
2012-07-21 13:12     ` Niklas Holsti
2012-07-21  0:27   ` Randy Brukardt
2012-07-21  7:36     ` Dmitry A. Kazakov
2012-07-21 13:31     ` Niklas Holsti
2012-07-23  5:02 ` Miles Bader
replies disabled

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