comp.lang.ada
 help / color / mirror / Atom feed
From: sbelmont700@gmail.com
Subject: Re: Ada  "library only" compiler ?
Date: Wed, 25 Jul 2012 16:44:47 -0700 (PDT)
Date: 2012-07-25T16:44:47-07:00	[thread overview]
Message-ID: <5e9f7ef8-65eb-4864-965f-7d89333995ea@googlegroups.com> (raw)
In-Reply-To: <500f1412$0$6203$ba4acef3@reader.news.orange.fr>

On Tuesday, July 24, 2012 5:30:58 PM UTC-4, Pascal Obry wrote:
> There is no clearly specified data structures or whatever.
> A DLL is a container. To use it one need to interface to it, from Ada,
> from C, from Pascal, from Python... And for this you need to have a
> stable and clear API which has nothing to do with DLL.
> 
> The Microsoft Win32 code happen to be in DLLs, but the same code could
> be provided as static library. No more or less problem. The same API,
> the same way to use it, the same need for an interface to it in C, Ada,
> Pascal, Python...
> 

Win32 has actually three sets of APIs: the user-land API that the hoi-polloi like us use (CreateFile), which in turn call another 'native' API (NTCreateFile), which in turn traps into the protected mode parts of the OS (INT 2e, platform depending).  In theory, a program written in bare-bones ASM (or the output of a compiler) could target any of these.  However, the problem is that only the outermost Win32 API is gaurenteed not to change and remain backwards compatible; your program is likely to break between versions of Windows if you attempt cut out the middle man.

-sb



  parent reply	other threads:[~2012-07-25 23:50 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
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 [this message]
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
2012-07-21  0:27   ` Randy Brukardt
2012-07-21  7:36     ` Dmitry A. Kazakov
2012-07-21 13:31     ` Niklas Holsti
     [not found]   ` <olpj085ii9fpifpligh6jerghoaieiim1d@invalid.netcom.com>
2012-07-20 23:38     ` Patrick
2012-07-21 13:12     ` 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