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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d2c078de2e21c8ec X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: Source code representation Date: 2000/11/27 Message-ID: <3A228D7F.2E2EB8ED@averstar.com>#1/1 X-Deja-AN: 698291782 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@inmet2.burl.averstar.com X-Trace: inmet2.burl.averstar.com 975342975 27602 141.199.8.77 (27 Nov 2000 16:36:15 GMT) Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 NNTP-Posting-Date: 27 Nov 2000 16:36:15 GMT Newsgroups: comp.lang.ada Date: 2000-11-27T16:36:15+00:00 List-Id: Florian Weimer wrote: > > The file-centered approach used by GNAT is close enough to what other > programming language implementations do on unixoid platforms > traditionally. I've never used another Ada compiler, and I wonder if > other vendors choose a different model (i.e. precompilation of specs > and bodies and some kind of library repository). Are there any other > Ada compilers which can directly use separate body/spec files in the > way GNAT mandates them? All Ada compilers can handle source split up into separate body/spec files. However, some require Ada code to have a particular filename suffix (e.g. ".a"), though that seems rarer these days. Because of GNAT's popularity, almost all compilers accept the .ads/.adb suffix as well. I suppose part of your question might be whether you have to take some additional step, or compile in some particular order, with a non-GNAT compiler. The answer is probably yes. However, that doesn't really affect the representation of the source. For example, with the compilers based on the AverStar AdaMagic front end (Green Hills and Aonix), there is a "registration" step which creates a map between source code and Ada unit name. This is optional if you compile in the "right" order, but if you want to compile in a random order, you need to initialize the "UNIT.MAP" file. Note that both of these compilers come with their own integrated development environment, which may more or less hide this requirement by bundling it in with the notion of adding source files/directories to a "project" or equivalent. > (I'm interested in this because I'm going to try to push some > Ada-related directory into the FHS standard, and the following > question arises: Are directories containing .ads/.adb files > GNAT-specific, practically speaking, or not?) GNAT-compatible source file organization is generally accepted by any Ada 95 compiler, though as mentioned above, you may have to compile in a particular order or perform some kind of "registration" step. -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Commercial Division, AverStar (formerly Intermetrics) (http://www.averstar.com/services/IT_consulting.html) Burlington, MA USA