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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Can I get rid of C libraries dependencies? Date: Wed, 16 Sep 2015 16:20:56 +0200 Organization: A noiseless patient Spider Message-ID: References: <0dd03a38-391b-45bc-859c-4ed2c42452e3@googlegroups.com> Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 16 Sep 2015 14:19:02 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="b96887e80893c84a90c3007226ca0d1c"; logging-data="7596"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6kQrzLQc8ZVuH2S6RsJlCwRXJMG7J3U4=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 In-Reply-To: <0dd03a38-391b-45bc-859c-4ed2c42452e3@googlegroups.com> Cancel-Lock: sha1:3d16xEJNw4d/OS3WaF9dCjqettQ= Xref: news.eternal-september.org comp.lang.ada:27778 Date: 2015-09-16T16:20:56+02:00 List-Id: On 16.09.15 14:55, Leff Ivanov wrote: > 3) Can I use Ada's RTL library without the C > support code, if I use some Restrictions? Maybe, depending on the restrictions. Also, depending on how the object code is to be installed: there is a documented way to use a C main, not an Ada main; if this, in spite of mentioning C, can mean that you just call the object code using C conventions, then linking need not be done at the Ada tools chain's end. If your object code is guaranteed not to require Ada RT support, it should work, I think. Some bits of a reduced RTS may be ready for inspection with implementations of GNAT for smaller computers (incl. no OS, IIRC). I'd start by looking for ARM, Cortex, STM32, Atmega, ...