comp.lang.ada
 help / color / mirror / Atom feed
From: Nicolas Colin Paul de Gloucester <wirklich@nicht.at>
Subject: Re: Inspirels Ada on cortex tutorial linker issue
Date: Tue, 30 Aug 2016 16:55:21 +0200
Date: 2016-08-30T16:55:21+02:00	[thread overview]
Message-ID: <alpine.LNX.2.00.1608301642280.24118@earth.anapnea.net> (raw)
In-Reply-To: <114c0223-e914-4a5c-b533-d1b924895181@googlegroups.com>

|-----------------------------------------------------------------------|
|"On Monday, August 29, 2016 at 1:49:23 PM UTC-4, Nicholas Colin Paul de|
|Gloucester wrote:                                                      |
|                                                                       |
|Thay may be nice, but they are also out-of-the-language means.         |
|                                                                       |
|Uh, when I use a text editor to create Ada source files, then call     |
|gnatmake on the main program, I don't need to know anything about      |
|makefiles, pre-processor commands to mix in with my source, linker     |
|commands to bring in math libraries or whatever.  [. . .] All in all,  |
|much, much better than other languages where moving an application     |
|from one compiler to another for the same target can take weeks.       |
|                                                                       |
|[. . .]"                                                               |
|-----------------------------------------------------------------------|

Hello:

When I run  gnatmake  it invokes none of PowerAda and Janus/Ada and
Ada Magic. It invokes GNAT. For example,  out_of_the_language.ada  is
a file that contains a legal Ada program. GNATMake refuses to compile
it.

cat out_of_the_language.ada
package Out_Of_The_Language is
   type Out_Of_The_Language_Type is (True, False);
   function Predicate return Out_Of_The_Language_Type;
end Out_Of_The_Language;
package body Out_Of_The_Language is
   function Predicate return Out_Of_The_Language_Type is
      Disagreement : Out_Of_The_Language_Type := True;
   begin
      return Disagreement;
   end Predicate;
end Out_Of_The_Language;
 /home/gloucester/out_of_the_language/single_file $ gnatmake
 out_of_the_language.ada
gcc-4.9 -c -x ada out_of_the_language.ada
out_of_the_language.ada:5:01: end of file expected, file can have only
one compilation unit
gnatmake: "out_of_the_language.ada" compilation error

GNATChop is also out of the language and it provides a workaround.

 /home/gloucester/out_of_the_language/single_file $ mkdir ../GNATChop
 /home/gloucester/out_of_the_language/single_file $ gnatchop
 out_of_the_language.ada ../GNATChop
splitting out_of_the_language.ada into:
   ../GNATChop/out_of_the_language.ads
   ../GNATChop/out_of_the_language.adb

A person who knows everything about Ada and nothing about GNAT can
"use a text editor to create Ada source files" - e.g.
out_of_the_language.ada  - but cannot then merely "call gnatmake on
the main program". Invoking the GNATChop "pre-processor" might be a
step between "a text editor" and "gnatmake".

No person needs to "know anything about makefiles" for a language
(whether Ada or not Ada). A compiler for a language may be (and in
many cases is) impractical without something like GNATMake (and
GNATMake is much better than Make), but "makefiles" are also out of
those languages.

With kind regards,
Nicholas Collin Paul de Gloucester


  reply	other threads:[~2016-08-30 14:55 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-23  5:23 Inspirels Ada on cortex tutorial linker issue Devin
2016-07-23  6:57 ` Simon Wright
2016-07-23  7:34   ` Devin
2016-07-23  8:07     ` Devin
2016-07-23 16:32       ` Simon Wright
2016-07-24  2:32         ` Devin
2016-07-24  7:41           ` Simon Wright
2016-07-25  4:35             ` Devin
2016-07-25  8:07               ` Simon Wright
2016-08-20 22:09 ` Maciej Sobczak
2016-08-21  1:30   ` Devin
2016-08-21  1:37     ` Devin
2016-08-21 14:38       ` Maciej Sobczak
2016-08-22  4:00         ` Devin
2016-08-22 11:37           ` Brian Drummond
2016-08-29 17:49             ` Nicholas Colin Paul de Gloucester
2016-08-29 21:51               ` rieachus
2016-08-30 14:55                 ` Nicolas Colin Paul de Gloucester [this message]
2016-08-31  0:01                   ` Dennis Lee Bieber
2016-08-31 10:15                     ` Simon Wright
2016-08-31 12:42                 ` Maciej Sobczak
2016-09-01  9:15                   ` Alejandro R. Mosteo
2016-09-01 16:33                   ` AdaMagica
2016-09-02  0:36                     ` Jeffrey R. Carter
2016-09-02 12:05                       ` Maciej Sobczak
2016-09-02 12:53                         ` Dmitry A. Kazakov
2016-09-02 15:24                           ` G.B.
2016-09-02 21:33                             ` Maciej Sobczak
2016-09-03  9:20                               ` G.B.
2016-09-03 13:33                                 ` Alejandro R. Mosteo
2016-09-04 15:08                                 ` Maciej Sobczak
2016-09-02 13:40                         ` AdaMagica
2016-09-03 11:58                           ` Brian Drummond
2016-09-03 12:12                             ` Björn Lundin
2016-08-30 12:33               ` Brian Drummond
2016-08-30 13:01                 ` Simon Wright
2016-08-30 15:06                 ` Nicolas Colin Paul de Gloucester
2016-08-31 10:34                   ` Brian Drummond
2016-08-31 20:58                     ` Simon Wright
2016-09-01 11:08                       ` Brian Drummond
2016-08-31 12:47                 ` Maciej Sobczak
2016-09-01  0:02                   ` Dennis Lee Bieber
2016-09-01  9:03                     ` Alejandro R. Mosteo
replies disabled

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