Re: ada compiler?
- From: anon@xxxxxxxx (anon)
- Date: Sun, 11 Nov 2007 01:01:05 GMT
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 <name>.adb
to compile a simple program!
Most beginners that are learning Ada just use:
Note: (Linux version)
gnat compile <name>.adb
gnat bind <name>.ali
gnat link <name>.ali
./<name>
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 <name>.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 <uklh05-6gt.ln1@xxxxxxxxxxxxxxxxxxxxxxx>, Jeffrey Creem <jeff@xxxxxxxxxxxxx> 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'.
.
- Follow-Ups:
- Re: ada compiler?
- From: Martin Krischik
- Re: ada compiler?
- From: Jeffrey Creem
- Re: ada compiler?
- From: Georg Bauhaus
- Re: ada compiler?
- From: (see below)
- Re: ada compiler?
- References:
- Re: ada compiler?
- From: anon
- Re: ada compiler?
- From: tmoran
- Re: ada compiler?
- From: anon
- Re: ada compiler?
- From: Jeffrey Creem
- Re: ada compiler?
- Prev by Date: Re: Is it Ada 2005 or Ada 2007?
- Next by Date: Re: Parallel Text Corpus Processing with Ada?
- Previous by thread: Re: ada compiler?
- Next by thread: Re: ada compiler?
- Index(es):
Relevant Pages
|
|