From: Simon Wright <simon@pushface.org>
Subject: Re: for X'Address use - and Volatile
Date: Thu, 01 Sep 2016 06:41:07 +0100
Date: 2016-09-01T06:41:07+01:00 [thread overview]
Message-ID: <lyoa48goss.fsf@pushface.org> (raw)
In-Reply-To: 315a724f-0b77-47fd-9448-369e4670fc99@googlegroups.com
Maciej Sobczak <see.my.homepage@gmail.com> writes:
>> Indeed, address clauses ought to be avoided for all but their
>> intended purpose (mapping to hardware registers);
>
> I'd disagree here. Mapping to hardware registers (or mapping to memory
> regions in general) should be performed at the linker and loader
> level, which have much better tools for handling such tasks
And I'd disagree with that. By the time you have
* many registers to be described to the bit level
* many peripherals in your SOC
* more than a couple of teams involved
* a need to handle interrupts at the Ada level (i.e. with POs)
a linker script is *not* the best place to specify addresses. Especially
if you can call in a tool like AdaCore's svd2ada -
https://github.com/AdaCore/svd2ada
next prev parent reply other threads:[~2016-09-01 5:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-31 13:01 for X'Address use - and Volatile Maciej Sobczak
2016-08-31 14:00 ` AdaMagica
2016-08-31 19:36 ` Randy Brukardt
2016-08-31 22:17 ` Maciej Sobczak
2016-09-01 1:22 ` Randy Brukardt
2016-09-01 5:41 ` Simon Wright [this message]
2016-09-01 14:24 ` Maciej Sobczak
2016-09-01 8:12 ` J-P. Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox