From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bdf72b2364b0da13 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.191.2 with SMTP id gu2mr4219pbc.0.1323819155309; Tue, 13 Dec 2011 15:32:35 -0800 (PST) Path: lh20ni19408pbb.0!nntp.google.com!news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail User-Agent: NewsTap/3.5 (iPhone/iPod Touch) From: georg bauhaus Newsgroups: comp.lang.ada Mime-Version: 1.0 Message-ID: <1121794873345508522.151628rmhost.bauhaus-maps.arcor.de@news.arcor.de> Subject: Re: Interrupts handling in ADA References: <70e4b2ba-62c4-41d3-b603-a20e37d3d332@j9g2000vby.googlegroups.com> Date: 13 Dec 2011 23:32:06 GMT Organization: Arcor NNTP-Posting-Date: 14 Dec 2011 00:32:06 CET NNTP-Posting-Host: b3616c04.newsspool2.arcor-online.net X-Trace: DXC=M3keejRmR;_Fm0Y?OE@2^XA9EHlD;3YcR4Fo<]lROoRQ8kF Ada BRL wrote: > I've tried either with dll and lib but it hasn't worked...I've used > pragma Import(Convention, Entity, External_name) because I've read to > do so to link libraries into the Ada 95 programming book... > I prefer to load a static library (lib) instead of a dll (I've read > it's better for efficiency reasons); what I have to do, without pragma > Import(...)? >> >> The simplest way is to create a gpr-file for the external library and >> include it into your Ada project using "with." GNAT knows what to do next. > > How can I create a gpr file for the external library? > What I have to code inside? I suppose it will be a .ads file that I'll > link to the other ads and adb files. Two notes about issues that are different, really,linking and rendezvous. 1. Your GNAT installation includes a User's guide. There is a section on how to use DLLs, or, more generally, parts of programs not written in Ada. If you still want to try, it will explain how to find link names in a Windows(TM) environment. 2. Some imagery for rendezvous. Task Client goes shopping, needing bread and meat. So Client enters the queue at the baker's or enters the queue at the butcher's, but cannot enter both queues at the same time. Many clients may want bread. All of them are at the baker's. This is why there are queues. Staff will usually serve clients one by one, in order of arrival. Notice that while a client is waiting at the baker's, he or she is not at the same time waiting at the butcher's. Both the baker and the butcher may have more than one queue and, correspondingly, more entries: they may meet persons other than customers. For example, they may need to accept delivery of an extra supply of flour, or accept the newly sharpened knives, usually at the back entrance. Sales staff may also accept delivery of daily mail. They will selectively accept orders or letters.