comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: Ada's ranking of popularity at IEEE Spectrum
Date: Mon, 07 Jul 2014 09:04:18 GMT
Date: 2014-07-07T09:04:18+00:00	[thread overview]
Message-ID: <motuv.52951$eG.44864@fx21.fr7> (raw)
In-Reply-To: lpcsfq$kt8$1@speranza.aioe.org

On Sun, 06 Jul 2014 20:17:47 -0500, Nasser M. Abbasi wrote:

> On 7/6/2014 7:17 PM, Simon Clubley wrote:
> 
>> You can't do that until you have Ada compilers which are as widespread
>> as C.
>>
>> Simon.
>>
>>
> Sorry for basic question, but I thought Ada is now part of gnu gcc (gnat
> compiler)
> 
> https://gcc.gnu.org/wiki/GNAT
> 
> And I thought that this mean that everywhere there is gnu gcc, there
> will be Ada as well? And since everywhere there is gnu gcc as given in
> this list:
> 
> https://gcc.gnu.org/install/specific.html
> 
> There will also be a c compiler, then why would Ada be less available
> than C compilers?

Because most people building gcc use the configure option
--enable-language-=c,c++
instead of
--enable-languages=c,c++,ada

And most of the binaries for most of the distros are built that way. Ada 
is offered as an optional extra if you already know about it and 
specifically ask for it - AND it isn't simply missing

The situation is worse where cross-compilers are concerned : very few 
targets (AVR, occasionally Arm, and (new official target with gcc4.9, and 
not yet satisfactorily MSP430) are checked with --enable-languages=c,c+
+,ada. I may have missed some; if so, they don't get enough publicity!

So you have to build your own. Then gcc's build process is messy, 
frustrating and buggy as hell, and only the most trodden paths are 
relatively clear of bugs. (To the extent that people off the path who ask 
questions are usually simply told : get back on the path and start 
again). Turning on Ada support takes you off those paths into the weeds, 
and you will find build failures and bugs you have to wade through to 
even get the thing to compile. 

At this point I must say I am impressed with Peter Bigot's old 
unofficial"mspgcc" front end; it was remarkably trouble free.

If you bought or downloaded a set of commercially available tools for 
your FPGA (cough Actel/Microsemi) they won't even supply source (though 
it's a well known gcc distribution) and you have to dig it up from the 
Mentor Graphics website and build it yourself. (This specific target I 
haven't tried yet)

Then having a working compiler you find that you have only just started.

In contrast to C builds of gcc where the process tidily accommodates libc 
and libgcc because other people have set it all up for you - either the 
Ada RTS won't build for your target or there is no Ada RTS at all, and 
you have to create one from scratch. (for the MSP430 I adapted the 
minimal one from the AVR-Ada project. It works well if you don't need any 
tasking features)

> Isn't gnu gcc available everywhere? or may be the gnat part of gcc is
> not available everywhere like the c compiler part of gcc is?

So ... yes, gnat is available for a suitable definition of available. In 
practice, no...

At this point Ludovic's  "put up or shut up" (paraphrasing Dan'l) 
applies ... if each reader picked one small area and moved it forward, at 
least people would see SOME Ada happening. We have to start the snowball 
somewhere.

- Brian

  parent reply	other threads:[~2014-07-07  9:04 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 15:19 Ada's ranking of popularity at IEEE Spectrum Dan'l Miller
2014-07-06 16:25 ` gautier_niouzes
2014-07-06 17:18   ` Dan'l Miller
2014-07-06 18:03     ` Ludovic Brenta
2014-07-06 19:03       ` Dan'l Miller
2014-07-06 19:41         ` Ludovic Brenta
2014-07-07  7:03         ` Tero Koskinen
2014-07-06 22:15     ` Brad Moore
2014-07-07 13:14       ` Peter Chapin
2014-07-07 14:27         ` Dan'l Miller
2014-07-09 15:01         ` Brad Moore
2014-07-10  7:42           ` Maciej Sobczak
2014-07-10 13:56             ` Peter Chapin
2014-07-10 18:18             ` Nasser M. Abbasi
2014-07-10 18:30               ` Nasser M. Abbasi
2014-07-11  4:55                 ` theanalogmachine
2014-07-11 11:56                 ` G.B.
2014-07-07  8:37     ` Brian Drummond
2014-07-06 19:41 ` sbelmont700
2014-07-08 17:25   ` Shark8
2014-07-08 23:03     ` sbelmont700
2014-07-08 23:30       ` Jeffrey Carter
2014-07-09  0:29         ` sbelmont700
2014-07-09  2:30       ` Shark8
2014-07-27  2:01       ` David Thompson
2014-07-27 20:19         ` sbelmont700
2014-07-28  3:53           ` Dan'l Miller
2014-07-07  0:17 ` Simon Clubley
2014-07-07  1:17   ` Nasser M. Abbasi
2014-07-07  6:11     ` Simon Wright
2014-07-07  6:30     ` Georg Bauhaus
2014-07-07  9:04     ` Brian Drummond [this message]
2014-07-07 13:33       ` Simon Wright
2014-07-07 16:11         ` Brian Drummond
2014-07-10 19:49   ` Marius Amado-Alves
2014-07-10 20:19     ` Shark8
2014-07-10 21:39       ` björn lundin
2014-07-10 22:54         ` Shark8
2014-07-11  7:26           ` Dmitry A. Kazakov
2014-07-11  7:37           ` Maciej Sobczak
2014-07-11  9:32           ` björn lundin
2014-07-12 21:43           ` Marius Amado-Alves
2014-07-13  8:52             ` björn lundin
2014-07-11  0:16     ` Simon Clubley
2014-07-11  0:40       ` Jeffrey Carter
2014-07-11  1:15       ` Shark8
2014-07-11  7:03         ` Simon Clubley
2014-07-08 20:10 ` gautier_niouzes
2014-07-10 13:30 ` Gerd
2014-07-10 15:14   ` Shark8
2014-07-10 19:16   ` Jeffrey Carter
2014-07-11  2:17     ` Dennis Lee Bieber
2014-07-11  0:39   ` gvdschoot
replies disabled

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