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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fab59b511cb7000f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!q5g2000yqj.googlegroups.com!not-for-mail From: Piotr Trojanek Newsgroups: comp.lang.ada Subject: Re: New educational hardware ideal for Ada... Date: Sat, 2 Jul 2011 00:56:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <1d3d9566-0e35-44d2-b164-0bd0fa28edc2@b1g2000yql.googlegroups.com> <294d8344-3095-407e-a6b1-abcbf395e3a0@r2g2000vbj.googlegroups.com> NNTP-Posting-Host: 79.185.167.56 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1309593399 20238 127.0.0.1 (2 Jul 2011 07:56:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 2 Jul 2011 07:56:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q5g2000yqj.googlegroups.com; posting-host=79.185.167.56; posting-account=LFd3sgoAAABDYio74AixEjL14wx2GF_j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:21037 Date: 2011-07-02T00:56:38-07:00 List-Id: On 14 Cze, 16:42, John Kern wrote: > It seems there are two flavors ofARMcross compilers available as > GNAT GPL, one on a free OSEK OS, and another bare Ravenscar profile. > Presumably someone would need to modify the Lego NXT board support > package to accommodate new hardware, but at least there must be some > example code provided with the GPL compiler. As far as I know, there are 4 possibilities to use Ada on ARM. 1. There is a SF project which guides you to "port" the bare-board Ada Ravenscar GNAT 2010 compiler from Lego NXT to other ARM boards: http://sourceforge.net/projects/arm-ada/ Basically, what you have to do is to provide constants matching IO ports and ISR identifiers for your board. 2. Mindstorms GNAT 2009, which is based on OSEK. It supports only statically created tasks and no Ada tasking features. However, you can still write your code in Ada rather than C/C++. 3. RTEMS is the way to go, when you need complete (i.e., more than Ravenscar) Ada runtime on a resource limited ARM board. 4. If it is possible to run Linux on your ARM board and (cross)compile C/C++ code with GCC, it should be reasonably straightforward to build a also GNAT (cross)compiler. Piotr.