From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Are there any cross-compiler for Embedded Linux on ARMv7? Date: Mon, 29 Mar 2021 23:40:46 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: 5WHqCw2XxjHb2npjM9GYbw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:61674 List-Id: On 2021-03-29 23:06, John McCabe wrote: > On Mon, 29 Mar 2021 20:26:47 +0200, Dmitry A. Kazakov wrote: > >> On 2021-03-29 19:16, John McCabe wrote: >>> <..snip..> > >> We are using GNAT Pro cross compiler with Yokto and Debian, though I >> presume it will work with any distribution. > >> You need no evaluation. Simply install Debian, Ubuntu or Fedora on a >> resonable ARM board 2GB or more. Use the native GNAT FSF compiler there >> to build your executable. Transfer it to the target board. Enjoy. > >> Once you are ready, go and buy GNAT Pro. > > Thanks for that info Dmitry. We're using Petalinux on custom hardware > with a Xilinx Zynq-7000 (dual-core ARM A9), so it would be nice to run it > on the real thing to work out how we'd deal with some of the FPGA > interfaces and so on, if we were to purchase. If you plan to run Linux there I see no reason why you could not use the native ARM compiler for evaluation. A cross compiler would change little or nothing in that case. We are using a cross compiler for our custom target boards because it can be hosted on a powerful x86 machine instead of a sluggish ARM which also tend to crash under load or freeze when it goes into the swap. Otherwise, nothing changes. We can perfectly well compile everything using GNAT FSF on an ODROID-XU4. It would only take a week instead of a day to build... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de