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: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Mixing Ada code with similar licenses Date: Sun, 26 Mar 2017 22:12:16 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="d1e5eae10b2a8168fcc4a073b79e0a7f"; logging-data="12225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Oh88hH8FWbOA+CI77FEF4gs+scMg81yg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:+Ch5vkwdzGC9eDtmFoGjFzptHK8= sha1:mNgh8HqWq6/Zv8DuqxbXcJ9XP3w= Xref: news.eternal-september.org comp.lang.ada:46474 Date: 2017-03-26T22:12:16+01:00 List-Id: Jere writes: > On Friday, March 10, 2017 at 4:09:07 PM UTC-5, Simon Wright wrote: >> Jere writes: >> >> > Later on I found some code from Robert Kleczek which gave me some >> > ideas on how to transform a lot of the assembly in the original into >> > Ada code. >> >> I don't know if it would help, but there's code under GPL+runtime >> exception here .. I thoroughly enjoyed writing it! >> >> Files startup*.ad? in: >> >> Cortex M4F (STM32F407) >> https://sourceforge.net/p/cortex-gnat-rts/code/ci/default/tree/stm32f4/adainclude/ >> >> Cortex M3 (Arduino Due) >> https://sourceforge.net/p/cortex-gnat-rts/code/ci/default/tree/arduino-due/adainclude/ > > Just a followup. I started down this path as a parallel option. It > really wants to use memset to do the assignment. I didn't yet find an > Ada memset procedure in those libraries (I only browsed some. Nothing > popped up in the filenames that made me think memset would be in > there). Is that something you relied on GCC to provide or did you > roll your own and I am just missing it? > > With my current build setup, I am turning off cstdlib, so I don't have > memset available unless I roll my own. Not a problem, but just > thought I would ask. You're quite right. The reason it worked for me is that I included newlib as part of the compiler build, see https://sourceforge.net/u/simonjwright/buildingarmeabi/code But it does look neat!