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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4c1892715ffb825c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-02 08:02:13 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Exceptions in GNAT Date: 2 Jun 2002 08:02:12 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0206020702.12157fea@posting.google.com> References: <3CF9FB01.2070101@yahoo.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023030133 12372 127.0.0.1 (2 Jun 2002 15:02:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Jun 2002 15:02:13 GMT Xref: archiver1.google.com comp.lang.ada:25199 Date: 2002-06-02T15:02:13+00:00 List-Id: David Rasmussen wrote in message news:<3CF9FB01.2070101@yahoo.com>... > How do I compile for with most checks for debug builds, > and how do I compile with everything turned off > for performance intensive release builds? As Jack Point says in "Yeomen of the Guard" (from memory so it is undoubtedly paraphrased and not 100% Gilbert verbatim :-) "I shall teach you my best jokes quips and conundrums, nay I shall do more, I shall reveal the source whence I got them" The answer to these and all such questions is in the GNAT users guide. It is a mistake to try using GNAT without reading any documentation. That being said, the users guide is a large document and you definitely do NOT need to read it all before setting finger to keyboard. What you *should* read is the summary of switches, since there is a lot of useful material there. A simple way of getting a list of compiler options with brief descriptions is to do gnatmake with no arguments. They you can look down the list of -gnat switches with one line descriptions. This will answer the two specific questions you asked, as well as tell you about lots of other useful switches (e.g. I think that most beginners should use -gnatv if not -gnatl).