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,6c7dea22b75ba442 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: to gnat make or not to gnat make (Was: ada compiler?) Date: Tue, 13 Nov 2007 10:34:05 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <47396fb1$1@news.post.ch> References: <47394e4b$1@news.post.ch> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1194946485 22897 194.41.146.1 (13 Nov 2007 09:34:45 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Tue, 13 Nov 2007 09:34:45 +0000 (UTC) User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-Original-NNTP-Posting-Host: w03duo.pnet.ch X-Original-Trace: 13 Nov 2007 10:34:41 +0200, w03duo.pnet.ch Xref: g2news1.google.com comp.lang.ada:18343 Date: 2007-11-13T10:34:05+01:00 List-Id: anon schrieb: > -- You have to learn to crawl before you can walk and learn the rules > -- to walk before you should run. Indeed - only I think that using the GPS is crawling, "gnat make" is walking, "gnat compile" / "gnat bind" / "gnat link" is hurdles and "gcc -x ada" / "ld" steeplechase [1]. The reason you learn to craws first is because crawling is easier then walking. And using the GPS is the easiest way to compile/bind/link an Ada program using - well - gnat. > First, GNAT may be the only Ada 2005 compiler at the movement but that > may change if other posters arecorrect. Second, GNAT is not the only > compiler in use today, people are still using Ada 95 from other vendors. > Software vedors like GHS, IBM, and Janas have Ada compilers and not one > of them use "gnatmake". But all vendors including Adacore uses a version > of the three steps to build an Ada partition. Well, ObjectAda has an IDE and uses some form of project manager. > And if you check with the Ada LRM you will see that the LM promotes a > concept of not wasting or hogging resources. Since "gnatmake" is a > resource hog the concept states that it should not be used. And as most > poster say the Ada LRM is the final word. I see, you have not dug deep enough into the workings of "gnat". Have a look at the help page: ---------------------------------------------------------------------- GNAT GPL 2007 (20070405-41) Copyright 1996-2007, Free Software Foundation, Inc. List of available commands gnat bind gnatbind gnat chop gnatchop gnat clean gnatclean gnat compile gnatmake -f -u -c gnat check gnatcheck gnat elim gnatelim gnat find gnatfind gnat krunch gnatkr gnat link gnatlink gnat list gnatls gnat make gnatmake gnat metric gnatmetric gnat name gnatname gnat preprocess gnatprep gnat pretty gnatpp gnat stack gnatstack gnat stub gnatstub gnat xref gnatxref Commands find, list, metric, pretty, stack, stub and xref accept project file switches -vPx, -Pprj an d -Xnam=val ---------------------------------------------------------------------- "gnat compile" is an alias name for "gnatmake -f -u -c" - So the only way to avoid "gnatmake" is using "gcc -x ada". > Plus, if Adacore is sold and gutted, goes out of business, or falls out of > favor with other companies. The newbees need to know the concept of > how an Ada partition is generated. But they don't need to use the actual commands - they are too different between two compilers systems anyway. (I use DecAda as well). > Now just to be funny. Adacore would love to hear this but, the boss's blood > pressure might hit the roof. That is, if the programmer said, "I do not know > how to build a Ada program without using 'gnatmake' ". I know in theory how to compile an Ada program using "gcc -x ada" - but I can live without turning that theoretical knowledge into practical use. Martin [1] http://en.wikipedia.org/wiki/Steeplechase_%28athletics%29 -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com