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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Nicolas Colin Paul de Gloucester Newsgroups: comp.lang.ada Subject: Re: Inspirels Ada on cortex tutorial linker issue Date: Tue, 30 Aug 2016 16:55:21 +0200 Organization: A noiseless patient Spider Message-ID: References: <24d4ffc3-3915-4102-96ae-68d11d881443@googlegroups.com> <2efe4d01-4cd4-4aea-bc54-98ea5f26ec8a@googlegroups.com> <2cf07aa6-9cbb-44bc-8042-601c57c85457@googlegroups.com> <328fa4a3-6215-4101-835a-7eaf7ed72a8c@googlegroups.com> <1d62cc93-324a-4c87-b9d3-67c24cb54c5f@googlegroups.com> <114c0223-e914-4a5c-b533-d1b924895181@googlegroups.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Injection-Info: mx02.eternal-september.org; posting-host="c6519b3ecfc016f99588e924c44929cd"; logging-data="22577"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199iSJqDpie6NY5FNh/6d59QekoN2XX/PDfvtgbxjKIHA==" User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) In-Reply-To: <114c0223-e914-4a5c-b533-d1b924895181@googlegroups.com> Cancel-Lock: sha1:upsQtq5E06bPgGp0VZRfbAyxoSQ= X-X-Sender: gloster@earth.anapnea.net Xref: news.eternal-september.org comp.lang.ada:31645 Date: 2016-08-30T16:55:21+02:00 List-Id: |-----------------------------------------------------------------------| |"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