comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: How to compile Barnes' examples from his book using GNAT
Date: Sun, 6 Dec 2015 15:33:03 -0700
Date: 2015-12-06T15:33:03-07:00	[thread overview]
Message-ID: <n42cuc$nqs$1@dont-email.me> (raw)
In-Reply-To: <1449436915.3174.17.camel@obry.net>

On 12/06/2015 02:21 PM, Pascal Obry wrote:
> 
>> Almost. However, with no options, GNAT is not an Ada compiler. It
>> doesn't insert
>> integer-overflow checks, 
> 
> Recent GNAT versions have overflow on by default.

That's good. When I had checked not too long ago, it was still off by default.

>> stack-overflow checks, assertion checks, pre- and
>> post-condition checks, predicate checks, or invariant checks. 
> 
> The assertions and aspects checks are optional for an Ada compiler and
> can be turned on and off.

True, but examples from the book intended to demonstrate the use of these
features may not behave as described if they are not turned on.

-- 
Jeff Carter
"I wave my private parts at your aunties."
Monty Python & the Holy Grail
13

  reply	other threads:[~2015-12-06 22:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-06 10:49 How to compile Barnes' examples from his book using GNAT Jerry
2015-12-06 11:24 ` Brian Drummond
2015-12-06 18:17   ` Jeffrey R. Carter
2015-12-06 21:21     ` Pascal Obry
2015-12-06 22:33       ` Jeffrey R. Carter [this message]
2015-12-08  2:01         ` Randy Brukardt
2015-12-07  9:01   ` Jerry
2015-12-07  9:36     ` Jacob Sparre Andersen
2015-12-10  3:26       ` Jerry
2015-12-10  8:55         ` J-P. Rosen
2015-12-10 12:34           ` G.B.
2015-12-07 14:21     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox