comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: GNAT Compilation Problems
Date: 1996/10/11
Date: 1996-10-11T00:00:00+00:00	[thread overview]
Message-ID: <dewar.845089057@merv> (raw)
In-Reply-To: gauthier-1110961449370001@164.81.60.62


Michael says

"If your intent is to check that a component is entirely up to date
(including bodies), use "gnatmake". If you have only to check
the legality and consistency of one component, then "gnatmake" has
the harmful side-effect of attempting at compiling bodies, and "gcc"
is better.

So, I assert that "gcc" is more often the good choice than "gnatmake"."



The original question was about compiling, and most people think of
generating code when they are compiling. If you just want to check
legality, the best tool is gnatf.

But for most purposes, most people should use gnatmake all the time and
not use gcc directly. The typical cycle is

1. Edit some sources
2. gnatmake the main unit
3. run and test

The reason that gnatf is better than gcc for checking legality is that
(a) you do not have to bother with saying -gnatc
(b) you can check multiple units at the same time
(c) you can generate cross reference information
(d) or minimally, you can check for unused entities






  reply	other threads:[~1996-10-11  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-20  0:00 GNAT Compilation Problems Nigel J. Tracey
1996-09-21  0:00 ` David C. Hoos, Sr.
1996-09-21  0:00   ` Graffiti
1996-09-22  0:00     ` Keith Thompson
1996-09-21  0:00   ` Graffiti
1996-09-21  0:00 ` David C. Hoos, Sr.
1996-10-02  0:00   ` Kevin English
1996-10-08  0:00     ` Robert Dewar
1996-10-08  0:00       ` Gandalf
1996-10-09  0:00         ` Robert Dewar
1996-10-11  0:00           ` Michael Feldman
1996-09-23  0:00 ` Simon Wright
1996-10-11  0:00 ` Michel Gauthier
1996-10-11  0:00   ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-09-20  0:00 Nigel J. Tracey
1996-09-21  0:00 ` Robert Dewar
1996-09-21  0:00 ` Robert Dewar
replies disabled

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