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,ad47c3851d906864 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.125.233 with SMTP id mt9mr18210468pbb.5.1335850478206; Mon, 30 Apr 2012 22:34:38 -0700 (PDT) Path: r9ni118501pbh.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Micronian Coder Newsgroups: comp.lang.ada Subject: Re: Ada on Nintendo DS ? Date: Mon, 30 Apr 2012 22:34:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: <22819949.1686.1335850477840.JavaMail.geo-discussion-forums@ynee1> References: NNTP-Posting-Host: 71.103.151.88 Mime-Version: 1.0 X-Trace: posting.google.com 1335850478 12360 127.0.0.1 (1 May 2012 05:34:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 1 May 2012 05:34:38 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.103.151.88; posting-account=tXrPSAkAAAAFR3M1xqoK7TQdrNxOfPT0 User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-04-30T22:34:37-07:00 List-Id: Hi, Have you considered looking into RTEMS? http://wiki.rtems.org/wiki/index.php/RTEMSAda There is a Nintendo DS BSP (http://wiki.rtems.org/wiki/index.php/Nds) that = has support for some low level functions (e.g. LCD access). The Ada compile= r for RTEMS was updated quite often last time I tried it (at least 3 years = ago). When I experimented with Ada on RTEMS I built a cross compiler for th= e Nintendo GameBoy Advance on a Slackware Linux machine. Instead of running= on real hardware, I ran the binary output in a GBA emulator (I forgot whic= h one, and it wasn't maintained any longer when I found it). I only got as = far as printing a Hello World program and translated a C pong game example = into Ada that ran very well. There was an issue with exceptions not getting= caught, but it looks like that may have been fixed in more recent version = of GCC for RTEMS (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D35143 ) --Micronian Coder On Friday, April 27, 2012 11:56:10 AM UTC-7, Natasha Kerensikova wrote: > Hello, >=20 > I have been desiring getting a try at developing for embedded platforms > for a while now. >=20 > Moreover, I just happen to own a device that probably qualifies as > embedded, with two ARM CPUs (one ARM7 and one ARM9), 4 MB RAM and a few > DSPs. The device is known as Nintendo DS lite. >=20 > So how do I compile code suitable to run on such a device? >=20 > I haven't been able to find anything that perform such a task, but I > have missed it? >=20 > As far as I can tell, devkitARM is a toolchain derived from GCC that > targets my hardware (it seems there is also some libraries to deal with > DSPs and stuff, but I can care about this later on). On the other end, > gnatdroid seems to successfully translate Ada code into binary that can > be fed to ARM CPUs. So unless I'm missing something, there is nothing > new to discover, I would only need to merge both derivations. >=20 > Would anyone have an estimation or a bound on how difficult it can be? >=20 > I have never built a compiler myself (except gnat-aux ports, but it just > works, so I have no actual experience of making a compiler code build), > so I'm not sure exactly how much of a task it is. >=20 > Maybe I should start with smaller steps, like writing C stuff going > through devkitARM, and then only start aiming at Ada? >=20 >=20 > Thanks in advance for your insights, > Natasha