comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Project file - suggestions/help needed.
Date: Sun, 03 Aug 2008 17:13:34 GMT
Date: 2008-08-03T17:13:34+00:00	[thread overview]
Message-ID: <2Hllk.282253$yE1.253487@attbi_s21> (raw)
In-Reply-To: <4895659d$0$15880$edfadb0f@dtext01.news.tele.dk>

Thomas wrote:
> 
> The goals of the file is:
> 
> 1. A fairly well optimized executable

-O2 is probably a better choice than -O3, which applies possibly dangerous 
experimental optimizations.

> 2. Generate as many style warnings as possible

-gnatwa

> 3. Enable Ada 2005 extensions
> 4. It should work for basic Ada projects, coded by two beginners

Ada, as described in the ARM, requires integer overflow checking (-gnato), 
raising Storage_Error if you bust the stack (-fstack-check), and dynamic 
elaboration checks (-gnatE). If you want cross-unit inlining, you need -gnatn.

GNAT does static elaboration checking, which is fine for most situations, but 
will reject some valid Ada code, so leaving off -gnatE is usually not a problem. 
But I would recommend that you use -gnato and -fstack-check.

-- 
Jeff Carter
"You've got the brain of a four-year-old boy,
and I bet he was glad to get rid of it."
Horse Feathers
47



  parent reply	other threads:[~2008-08-03 17:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-03  8:00 Project file - suggestions/help needed Thomas
2008-08-03 10:41 ` Simon Wright
2008-08-03 11:03 ` Stephen Leake
2008-08-03 15:22 ` Gautier
2008-08-04 20:59   ` Colin_Paul_Gloster
2008-08-03 17:13 ` Jeffrey R. Carter [this message]
2008-08-03 22:09   ` Simon Wright
2008-08-04  9:17     ` Samuel Tardieu
2008-08-04 21:05   ` Colin_Paul_Gloster
2008-08-05  5:27     ` Thomas Locke
2008-08-13 21:56       ` DScott
2008-08-03 18:43 ` Gene
2008-08-04 14:24   ` Thomas Locke
2008-08-13 21:58     ` DScott
2008-08-04 20:54 ` Colin_Paul_Gloster
2008-08-05  5:26   ` Thomas Locke
2008-08-05  8:00     ` Pascal Obry
2008-08-05  8:10       ` Thomas Locke
2008-08-05  8:05     ` Jean-Pierre Rosen
replies disabled

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