comp.lang.ada
 help / color / mirror / Atom feed
From: Natasha Kerensikova <lithiumcat@instinctive.eu>
Subject: Cross-toolchain for DS [was: Newcomers to comp.lang.ada: welcome and how did you end up here ?]
Date: Sun, 12 Oct 2014 10:56:07 +0000 (UTC)
Date: 2014-10-12T10:56:07+00:00	[thread overview]
Message-ID: <slrnm3kni3.nrc.lithiumcat@nat.rebma.instinctive.eu> (raw)
In-Reply-To: 2064812074434669488.767131laguest-archeia.com@nntp.aioe.org

Hello,

On 2014-10-10, Luke A  Guest <laguest@archeia.com> wrote:
> Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP> wrote:
>
>>> I'm also trying to build a cross-compiler for Nintendo DS, it's a bit
>>> less smooth but I haven't spent much time on it yet. Is it also doomed?
>>> 
>> 
>> I strongly recommend you follow Luke's link; he's spent quite a bit
>> of effort over the years on this and he's encountered a good range
>> of problems (there was a time when I was following Luke's work
>> closely).
>>
>
> Cheers, I have not touched it for a while. I was going try to maintain a
> GCC tree but I think it's going to easier to maintain patches still. I have
> some tiny patches which allow you to bud a gnat cross compiler with tools
> on the same vein as a c cross compiler. It's not great. It adds a new
> required flag to turn off building of the runtime. I need to rebook at it.
> Once my new site is ready I'll be going back to old projects, this one
> included. 

The problem here is that I'm trying to mix several projects, and it's
really difficult to make a "Frankenstein's toolchain" without
understanding what is going on, especially since it seems there are
several ways to do the same thing, and all with different versions and
patchsets.

I really want to start from devkitARM, since they provide a lot of very
useful system libraries for the target, and whatever target
configuration they use is what is needed for the host tools to build the
image.

It is built around gcc 4.8.2 with newlib. As a first step, I would be
happy with an Ada front-end without RTS, based only on a C-exported main
and C-imported system primitives. To reach this point, it seems the
required patchset is quite light.

Luke, would you mind explaining your gcc-4.6.1.diff and your choice of
configure flags? That would be extremely helpful to backport it into
devkitARM.

Then I will consider how to deal with the RTS and what features can be
realistically provided.

>> It's experiences like that which make we wonder if we need some kind
>> of new half-way language between C and Ada which is easy to bring up
>> on a new target and while not been as type-safe as Ada would be much
>> better than C.
>
> It's this kind of thing that makes me consider developing a new language
> derived from Asa bit simplified and just made easier to build.

Would anyone know whether an LLVM-based compiler would help on that
particular front?

On the one hand, having such a well-defined intermediate form should
result in a very loose coupling between back-end and front-end, making
all languages roughly equal.

On the other hand, how wide is the availability of LLVM-to-embedded-target
back-end? It's not much of a progress if C and Ada are equal at
"limited to desktop targets" point.


The reason why I'm asking, is I'm stilling working on updating gela and
building on it a RTS-limited LLVM-based Ada 95 compiler seems realistic
(albeit far away down the road).


Natasha


  reply	other threads:[~2014-10-12 10:56 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-06 22:42 Newcomers to comp.lang.ada: welcome and how did you end up here ? Simon Clubley
2014-10-06 23:18 ` brbarkstrom
2014-10-07  8:10 ` Gour
2014-10-07 10:49   ` Luke A. Guest
2014-10-08  7:23     ` Gour
2014-10-08  8:35       ` Brian Drummond
2014-10-08  9:15         ` Simon Wright
2014-10-08 19:14           ` -fdump-ada-spec (was: Newcomers to comp.lang.ada: welcome and how did you end up here ?) Ludovic Brenta
2014-10-08 19:48             ` -fdump-ada-spec Simon Wright
2014-10-08  9:17         ` Newcomers to comp.lang.ada: welcome and how did you end up here ? Gour
2014-10-08 11:23       ` Dmitry A. Kazakov
2014-10-10  9:18         ` Gour
2014-10-08 13:33       ` Luke A. Guest
2014-10-07 20:06 ` Stribor40
2014-10-07 20:21   ` Jeffrey Carter
2014-10-07 21:28     ` David Botton
2014-10-09  5:57       ` Dirk Craeynest
2014-10-10  0:58     ` rriehle
2014-10-08  7:08   ` Dmitry A. Kazakov
2014-10-09 11:58 ` Mark Carroll
2014-10-09 13:31   ` Simon Wright
2014-10-09 18:04     ` Brian Drummond
2014-10-09 20:02       ` Dmitry A. Kazakov
2014-10-09 18:35     ` Mark Carroll
2014-10-09 21:08       ` Simon Clubley
2014-10-10  7:28         ` Natasha Kerensikova
2014-10-10  9:07           ` Mark Carroll
2014-10-10  9:33             ` Björn Lundin
2014-10-10 11:41               ` Natasha Kerensikova
2014-10-10 13:35                 ` Björn Lundin
2014-10-10 17:10                   ` Natasha Kerensikova
2014-10-10 18:22                     ` Luke A. Guest
2014-10-10 14:51                 ` Lucretia
2014-10-10 14:28           ` Lucretia
2014-10-10 19:47           ` Simon Clubley
2014-10-10 21:38             ` Luke A. Guest
2014-10-12 10:56               ` Natasha Kerensikova [this message]
2014-10-12 11:40                 ` Cross-toolchain for DS [was: Newcomers to comp.lang.ada: welcome and how did you end up here ?] Simon Clubley
2014-10-12 12:27                   ` Peter Chapin
2014-10-12 19:42                     ` Simon Clubley
2014-10-12 13:25                 ` Luke A. Guest
2014-10-12 13:52                   ` Natasha Kerensikova
2014-10-12 14:40                     ` Luke A. Guest
2014-10-12 20:09                     ` Natasha Kerensikova
2014-10-19 14:34                       ` Natasha Kerensikova
2014-10-19 15:48                         ` Luke A. Guest
2014-10-23  8:22                           ` Natasha Kerensikova
2014-10-12 23:18                     ` Lucretia
2014-10-15  9:46                       ` Brian Drummond
2014-10-15 16:50                         ` Lucretia
2014-10-15  9:58                 ` Brian Drummond
2014-10-15 10:32                   ` Natasha Kerensikova
2014-10-16 12:04                     ` Brian Drummond
2014-10-11 10:53             ` Newcomers to comp.lang.ada: welcome and how did you end up here ? Brian Drummond
2014-10-12  1:33         ` David Botton
2014-10-12  1:25       ` David Botton
2014-10-12 14:40         ` Luke A. Guest
2014-10-09 19:06   ` Shark8
2014-11-04 16:28   ` Nicholas Collin Paul de Gloucester
2014-11-04 16:45     ` Barry Danforth
2014-11-04 17:18       ` David Botton
2014-10-09 12:50 ` john
2014-10-09 21:08 ` gdotone
2014-10-10 16:25 ` Stribor40
2014-10-10 17:09   ` Luke A. Guest
2014-10-10 17:59     ` Stribor40
2014-10-10 18:22       ` Luke A. Guest
2014-11-08 23:51 ` HerrDoktor
2014-11-09  7:44   ` Karl Stromberg
2014-11-09  9:28     ` HerrDoktor
2014-11-09  9:42     ` HerrDoktor
2014-11-09  9:59       ` Karl Stromberg
2014-11-09 10:25         ` HerrDoktor
2014-11-09 16:31           ` David Botton
2014-11-09 16:29         ` David Botton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox