Re: ada compiler?



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'.


.



Relevant Pages

  • Re: Bug in Ada (SuSe 10.2) ?
    ... The simple explanation is that GNAT, by default, is not an Ada ... Well, if you're going to be pedantic, then even with those flags GNAT ... is not an Ada compiler, because I can give it Ada programs that it ... 2005 to be working 100% correctly, the Ada language will be up to Ada ...
    (comp.lang.ada)
  • Re: ada compiler?
    ... there is a Ada language answer then that is the answer that should be the ... Most beginners that are learning Ada just use: ... gnat compile.adb ... I managed labs that taught Ada to 500 beginners a year using GNAT, ...
    (comp.lang.ada)
  • Re: Extending discriminant types
    ... Because the poster states that he can compiler the code. ... I used Gnat 3.15p using Ada 95 specs. ... type Child is new KBase with null record; ...
    (comp.lang.ada)
  • Re: GNAT GPL 2005 Edition is now available
    ... I oppose Debian moving to any Ada compiler which generates ... code that has serious license restrictions. ... Why should GNAT be any different? ... Will there be *any* compilers available for Ada 2005 suitable ...
    (comp.lang.ada)
  • Re: Are there noticable differences in Ada acceptance by country?
    ... Besides Gnat, any Ada compiler is expensive, really expensive, ... multitasking, don't talk about long-term maintenance, safety, less ... Sometimes I think that a lot of beginners browse the index of any Ada ...
    (comp.lang.ada)