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,3b322104ceea062d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-ID: <1636357.gWrtX1Nq9K@linux1.krischik.com> From: Martin Krischik Subject: Re: What does -gnato do? Newsgroups: comp.lang.ada Date: Sun, 27 Aug 2006 10:55:20 +0200 References: User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.74.130.70 (84.74.130.70) NNTP-Posting-Date: Sun, 27 Aug 2006 11:30:02 +0200 X-Trace: 9fb7344f1661af1ef27e323794 Xref: g2news2.google.com comp.lang.ada:6405 Date: 2006-08-27T10:55:20+02:00 List-Id: Peter C. Chapin wrote: > C:\home\Languages\Ada>gnatmake check.adb > gcc -c check.adb > check.adb:6:11: warning: value not in range of type "Standard.Integer" > check.adb:6:11: warning: "Constraint_Error" will be raised at run time > gnatbind -x check.ali > gnatlink check.ali -gnato enables runtime checks but the warning results from a compile time check. The ability to make quite a lot of checks at compile time - rather then runtime - is a is one great advantage of the Ada Syntax and Sematic: Compile time check do not reduce performace of the final application :-) they might however increase performance :-)) and thefore there is really no need to disable them. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com