comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Inspirels Ada on cortex tutorial linker issue
Date: Thu, 1 Sep 2016 09:33:13 -0700 (PDT)
Date: 2016-09-01T09:33:13-07:00	[thread overview]
Message-ID: <91322cd6-710a-424c-851e-9b5eb013e8a1@googlegroups.com> (raw)
In-Reply-To: <9ee99ad0-2fc5-47d3-bd2e-6f418f23a46a@googlegroups.com>

Am Mittwoch, 31. August 2016 14:42:59 UTC+2 schrieb Maciej Sobczak:
> On Monday, August 29, 2016 at 11:51:36 PM UTC+2, riea...@comcast.net wrote:
> > All in all, much, much better than other languages where moving an
> > application from one compiler to another for the same target can take weeks.
>
> Sorry, but this argument is as wrong as it is frequently repeated.
> If you move Ada to another compiler, you can be sure that your gnatmake will
> not work anymore. And then it will take weeks to configure the new tool.
>
> Similarly, I can see people arguing that Ada is more portable than "other
> languages" (meaning C), because they never move outside of GNAT. If you don't
> change the compiler, then Ada and "other languages" are similarly portable.
> There is nothing magic in Ada, it is a single toolchain that people are
> attached to (for whatever reason), that makes their code kind of portable or
> stable.

Well, I can't comment on C(++). But:

I re-hosted several million lines of airborne embedded Ada code to different hardware (big endian to little endian) with compilers from different manufacturers (Ada 83 to Ada 95/2005) for use in full scale flight simulators. And to my big surprise, only very few pieces of code had to be touched.

GNAT's project files were easily written to work with the original code distribution over more than a dozen subsystem directory trees. It didn't take weeks; of course I had to learn about project files, but then it was matter of a few hours.

Biggest problems were:
- BE to LE
- original code not fully compliant to Ada RM (e.g. with Unchecked_Conversion)
- elaboration circularities arising because of code changes for simulator needs


  parent reply	other threads:[~2016-09-01 16:33 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-23  5:23 Inspirels Ada on cortex tutorial linker issue Devin
2016-07-23  6:57 ` Simon Wright
2016-07-23  7:34   ` Devin
2016-07-23  8:07     ` Devin
2016-07-23 16:32       ` Simon Wright
2016-07-24  2:32         ` Devin
2016-07-24  7:41           ` Simon Wright
2016-07-25  4:35             ` Devin
2016-07-25  8:07               ` Simon Wright
2016-08-20 22:09 ` Maciej Sobczak
2016-08-21  1:30   ` Devin
2016-08-21  1:37     ` Devin
2016-08-21 14:38       ` Maciej Sobczak
2016-08-22  4:00         ` Devin
2016-08-22 11:37           ` Brian Drummond
2016-08-29 17:49             ` Nicholas Colin Paul de Gloucester
2016-08-29 21:51               ` rieachus
2016-08-30 14:55                 ` Nicolas Colin Paul de Gloucester
2016-08-31  0:01                   ` Dennis Lee Bieber
2016-08-31 10:15                     ` Simon Wright
2016-08-31 12:42                 ` Maciej Sobczak
2016-09-01  9:15                   ` Alejandro R. Mosteo
2016-09-01 16:33                   ` AdaMagica [this message]
2016-09-02  0:36                     ` Jeffrey R. Carter
2016-09-02 12:05                       ` Maciej Sobczak
2016-09-02 12:53                         ` Dmitry A. Kazakov
2016-09-02 15:24                           ` G.B.
2016-09-02 21:33                             ` Maciej Sobczak
2016-09-03  9:20                               ` G.B.
2016-09-03 13:33                                 ` Alejandro R. Mosteo
2016-09-04 15:08                                 ` Maciej Sobczak
2016-09-02 13:40                         ` AdaMagica
2016-09-03 11:58                           ` Brian Drummond
2016-09-03 12:12                             ` Björn Lundin
2016-08-30 12:33               ` Brian Drummond
2016-08-30 13:01                 ` Simon Wright
2016-08-30 15:06                 ` Nicolas Colin Paul de Gloucester
2016-08-31 10:34                   ` Brian Drummond
2016-08-31 20:58                     ` Simon Wright
2016-09-01 11:08                       ` Brian Drummond
2016-08-31 12:47                 ` Maciej Sobczak
2016-09-01  0:02                   ` Dennis Lee Bieber
2016-09-01  9:03                     ` Alejandro R. Mosteo
replies disabled

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