From: Stephen Leake <Stephe.Leake@nasa.gov>
Subject: Re: Project file - suggestions/help needed.
Date: Sun, 03 Aug 2008 07:03:38 -0400
Date: 2008-08-03T07:03:38-04:00 [thread overview]
Message-ID: <ud4kqfjhx.fsf@nasa.gov> (raw)
In-Reply-To: 4895659d$0$15880$edfadb0f@dtext01.news.tele.dk
Thomas <me@pancon.dk> writes:
> http://pastebin.ca/1091592
>
> It seems to work as intended, but I would really like some comments
> from the more experienced Ada crowd. Are there redundant settings in
> there? Are there important settings missing?
-gnato
> Are there downright "dangerous" mistakes?
AdaCore recommends against -O3; it contains dangerous optimizations.
Stick with -O2.
> The posted project file has been build by combining settings found on
> various Ada/gnatmake related websites.
It also be good to read the GNAT User Guide and GNAT Reference.
What is the rationale for not using -gnatwa?
> The goals of the file is:
>
> 1. A fairly well optimized executable
> 2. Generate as many style warnings as possible
> 3. Enable Ada 2005 extensions
> 4. It should work for basic Ada projects, coded by two beginners
>
> Also, it looks as if I will be needing XML/Ada for the project I'm
> currently working on. How would I go about adding the XML/Ada stuff to
> my project file?
I assume XML/Ada has a gpr file intended to be included in your
project file; let's assume it's /stuff/xml_ada/xml_ada.gpr. Declare an
environment variable ADA_PROJECT_PATH containing "/stuff/xml_ada".
Then add to your project file: "with xml_ada;", before the 'project' keyword.
> Would I just move all the XML/Ada source files to my source/
> directory, and that would be it?
No.
This is all explained in the GNAT Reference.
--
-- Stephe
next prev parent reply other threads:[~2008-08-03 11:03 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 [this message]
2008-08-03 15:22 ` Gautier
2008-08-04 20:59 ` Colin_Paul_Gloster
2008-08-03 17:13 ` Jeffrey R. Carter
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