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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!news.glorb.com!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: ada compiler? Reply-To: anon@anon.org (anon) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sun, 11 Nov 2007 01:01:05 GMT NNTP-Posting-Host: 12.65.102.205 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1194742865 12.65.102.205 (Sun, 11 Nov 2007 01:01:05 GMT) NNTP-Posting-Date: Sun, 11 Nov 2007 01:01:05 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:18262 Date: 2007-11-11T01:01:05+00:00 List-Id: You are missing the point. You should not assume that they need command line option until they ask for help that require that type of answer. And if there is a Ada language answer then that is the answer that should be the given. Not a simple command line answer which is vendor and/or version specific. Plus, how many beginners first downloads a GNAT version that requires: gnatmake -gnato -fstack-check .adb to compile a simple program! Most beginners that are learning Ada just use: Note: (Linux version) gnat compile .adb gnat bind .ali gnat link .ali ./ Extension can be optional in some cases. Which is what I stated. By learning the long way first a person is allowed a more deeper understanding and appreciation of the language. Only after they learn the basics should they start to use: gnat make .adb without any options. Then in most cases, the first command option they will use is to include object files from other languages. Later they may get into more complex concepts that may require some command line options, but they should always use the standard Ada language concepts first. Now academic version of GNAT defaults to low integrity, while most others Ada compilers default to high integrity including GNAT PRO. And with a few vendors, the install program will ask for the desired installation integrity level. In , Jeffrey Creem writes: >anon wrote: >> Since, my version of GNAT by default is set to the "High_Integrity" Mode >> the program always takes the CONSTRAINT_ERROR exits unless the >> correct "pragma Suppress" or "pragma Restrictions" is set. Such as >> adding: >> >> pragma Suppress ( All_Checks ) ; >> >> So never assume that you need an options less you have proven that it >> is needed on that version. Plus, if you switch vendor or newer releases >> that option may not exist. >> >> And as for newbees, let them enjoy the power and beauty of Ada before >> getting into the implementation junk that destroys their desire to support > >I think the odds of the original poster having a special version of GNAT >that is "Ada" by default is very low. Especially given that he said he >was using gcc with c,c++ and Ada support. That almost certainly means it >is some distribution native gcc that is bundled with the FSF/AdaCore >default of 'not quite Ada'. >