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,575dfcf6488662de X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Thomas Lotze Newsgroups: comp.lang.ada Subject: Re: Libraries written in Ada Date: Mon, 22 Nov 2004 21:36:15 +0100 Message-ID: References: <18687975.p80OmDsB1I@linux1.krischik.com> <1464020.dFWPVBaaRG@linux1.krischik.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de huUFplpMhyr8l+GKavpKSAvMty8NZNPvs/N3HHNDgNFYbJ4o/U User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Xref: g2news1.google.com comp.lang.ada:6337 Date: 2004-11-22T21:36:15+01:00 List-Id: On Mon, 22 Nov 2004 18:59:16 +0100, Martin Krischik wrote: > Actually both. The common runtime consists of packages as well and every > package may or may not have it's own mini runtime environment. There are > pragma instructions to controll that i.E. "pragma Pure" says that a > package has no runtime environment and does not use another package with a > runtime environment. And even though it is thus possible to have an Ada package which doesn't need a runtime environment, it is always necessary to initialize one? Is that what you meant by "it's not an optional extra" in one of your earlier messages? > Please Note: you are asking very low level questions. Normaly you don't > need to worry about it. Ada as a package orientated language has it all > build. Sure, but I'd like to know what implications my choice of language has for using the library I want to write before I lean back and feel happy about leaving these details to the language. > That's the normal way for static linking. It does have the advantage that > the binder will bind and elaborate only the packages which are actually > used. Nice. Thanks for your explanations so far. One thing I haven't thought about asking yet: What does adafinal() normally do? Does it things like flushing file buffers and closing files, or is it just about cleaning up memory? So, if it is the last function called from main(), may it just as well be omitted? -- Viele Gr��e, Thomas