comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
Subject: Re: Inspirels Ada on cortex tutorial linker issue
Date: Mon, 22 Aug 2016 11:37:22 -0000 (UTC)
Date: 2016-08-22T11:37:22+00:00	[thread overview]
Message-ID: <npeo5i$v8g$1@dont-email.me> (raw)
In-Reply-To: 1d62cc93-324a-4c87-b9d3-67c24cb54c5f@googlegroups.com

On Sun, 21 Aug 2016 21:00:46 -0700, Devin wrote:

> On Sunday, August 21, 2016 at 10:38:12 AM UTC-4, Maciej Sobczak wrote:
>> > I just added the code you provided directly after the Run procedure,
>> > and it linked without error. I am confused as to why it would be
>> > different from including it in a different file the way I did.
>> 
>> Let me guess - you did not compile the noexceptionhandling.adb file 
...
> Ah, you knew the issue exactly, I did not even compile it.  Now after
> compiling, I was able to link and load it onto the board properly.
> 
> It is nice to see the solution come from a pure Ada perspective as well.
>  I am very early in learning to write embedded firmware, and any
> software in general, so I greatly appreciate your help.
> 
> Devin

It's not QUITE a pure Ada perspective (IMO) ... that would involve the 
Ada compiler system tracking and automatically compiling all necessary 
dependencies.

That's what gnatmake or gprbuild do - where some languages require 
Makefiles or other out-of-the-language means to manage the dependencies.

However in this case the dependency is injected by specific versions of 
the compiler, behind Ada's back so to speak, so the Ada compiler can't 
track it for you. Even if it's written in pure Ada, the separate compile 
and linking steps are still just a workaround until the compiler gets 
fixed.

-- Brian

  reply	other threads:[~2016-08-22 11:37 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 [this message]
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
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