From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: STM32F4 Discovery, communication and libraries
Date: Fri, 29 Aug 2014 19:52:44 +0300
Date: 2014-08-29T19:52:44+03:00 [thread overview]
Message-ID: <c6bpefF2efgU1@mid.individual.net> (raw)
In-Reply-To: <kqt00a5gqdb7o7j4vvtffaifk8ing3gra8@4ax.com>
On 14-08-29 16:06 , Dennis Lee Bieber wrote:
> On Thu, 28 Aug 2014 13:34:58 -0700 (PDT),
> embeddedrelatedmike@scriptoriumdesigns.com declaimed the following:
>
>> On Thursday, August 28, 2014 1:09:05 PM UTC-7, Dmitry A. Kazakov wrote:
>>> Not really. OS is more than tasking, it is also a queueing mechanism, which
>>> allows waiting for I/O completion in one task without blocking all other
>>> tasks.
>>> ......
>>> You could not implement an equivalent of I/O queueing under the Ravenscar
>>> constraints.
>>
>> Are you saying that a full Ada implementation on bare metal could
>> not implement an equivalent of I/O queueing?
>>
>> Or are you saying that Ravenscar tasking on bare metal could not implement
>> such queueing?
>
> Have you looked at the list of restrictions that profile requires?
>
> Max_Task_Entries = 0 (which goes along with)
> No_Select_Statements
>
> Max_Protected_Entries = 1 (effectively no queuing up for access to
> protected objects by multiple tasks)
> Simple_Barriers (plain T/F Boolean variable controlling entries)
>
> No_Relative_Delays (no "delay n" only "delay until m")
>
> Oh, and No_Abort_Statements (and a number of other restrictions)
All Ravenscar restrictions are on the _tasking_ system, with the
exception of No_Implicit_Heap_Allocation and forbidding the use of
Ada.Calendar (but _explicit_ heap allocation remains possible).
The rest of Ada remains in its full form.
However, some Ravenscar run-time systems _also_ have other restrictions,
for example limitations on the use of unconstrained array types in
expressions.
> It works if the entire system including the "user application" level is
> built "as one".
That same restriction holds for all standard Ada programs (with the
possible exception of distributed programs -- I have no experience
there). At bind time, all the compilation modules forming the program
are identified and included in the program, and no other modules/code
can be added later, unless the program dynamically links to plug-in
libraries, which is not standard Ada.
> It is NOT a very dynamic arrangement wherein you may plug
> in a new sensor and have it magically install itself to some list of
> sensors to be reported.
It is certainly possible to write a Ravenscar program in which adding a
new sensor can be done by adding a single line, "with My_New_Sensor", to
the main subprogram. At elaboration time, My_New_Sensor can install its
tasks and protected objects in the application's data structures. No
problem.
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2014-08-29 16:52 UTC|newest]
Thread overview: 93+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 22:38 STM32F4 Discovery, communication and libraries roy.emmerich
2014-08-27 2:40 ` Luke A. Guest
2014-08-27 12:35 ` Roy Emmerich
2014-08-27 7:41 ` Dmitry A. Kazakov
2014-08-27 13:35 ` Roy Emmerich
2014-08-27 16:00 ` Dmitry A. Kazakov
2014-08-27 13:08 ` Dennis Lee Bieber
2014-08-27 15:44 ` Roy Emmerich
2014-08-28 1:37 ` Dennis Lee Bieber
2014-08-27 16:03 ` Roy Emmerich
2014-08-28 1:48 ` Dennis Lee Bieber
2014-08-28 10:12 ` Roy Emmerich
2014-08-28 13:00 ` Dmitry A. Kazakov
2014-08-28 16:28 ` Mike Silva
2014-08-28 17:03 ` Roy Emmerich
2014-08-28 20:09 ` Dmitry A. Kazakov
2014-08-28 20:34 ` embeddedrelatedmike
2014-08-29 7:34 ` Dmitry A. Kazakov
2014-08-29 15:59 ` Niklas Holsti
2014-08-29 16:59 ` [OT] Ravenscar (the place, not profile), was: " Simon Clubley
2014-08-29 17:18 ` Niklas Holsti
2014-08-29 17:31 ` Simon Clubley
2014-08-30 14:55 ` Dennis Lee Bieber
2014-08-29 17:59 ` Jeffrey Carter
2014-08-29 23:30 ` Randy Brukardt
2014-08-30 11:25 ` Simon Clubley
2014-08-31 11:09 ` Phil Thornley
2014-08-30 12:36 ` Peter Chapin
2014-08-31 18:37 ` Dirk Craeynest
2014-08-31 19:38 ` Simon Clubley
2014-08-29 17:24 ` Mike Silva
2014-08-29 23:35 ` Randy Brukardt
2014-08-29 13:06 ` Dennis Lee Bieber
2014-08-29 16:52 ` Niklas Holsti [this message]
2014-08-31 0:49 ` Shark8
2014-08-28 21:17 ` Niklas Holsti
2014-08-29 0:07 ` Roy Emmerich
2014-08-29 17:58 ` Niklas Holsti
2014-08-29 7:41 ` Dmitry A. Kazakov
2014-08-29 16:31 ` Niklas Holsti
2014-08-29 16:47 ` Roy Emmerich
2014-08-29 19:41 ` Niklas Holsti
2014-08-30 22:00 ` Roy Emmerich
2014-08-31 10:08 ` Simon Wright
2014-09-01 20:15 ` Niklas Holsti
2014-09-01 21:11 ` Jeffrey Carter
2014-08-31 4:54 ` gvdschoot
2014-09-09 19:17 ` Roy Emmerich
2014-09-09 20:20 ` Mike Silva
[not found] ` <a54dcc42-d4e2-4d53-b381-2bb7a0eef1ee@googlegroups.com>
2014-09-10 1:41 ` Dennis Lee Bieber
2014-09-10 8:52 ` Roy Emmerich
2014-09-10 13:05 ` Dennis Lee Bieber
2014-09-10 17:16 ` Simon Wright
[not found] ` <a2e59fce-751c-46a0-90f3-80430c627732@googlegroups.com>
2014-09-10 7:22 ` Dmitry A. Kazakov
2014-09-10 9:35 ` Roy Emmerich
2014-09-10 14:11 ` Stephen Leake
2014-09-10 17:46 ` Jeffrey Carter
2014-09-10 18:37 ` Dmitry A. Kazakov
2014-09-11 9:53 ` Stephen Leake
2014-09-11 17:19 ` Jeffrey Carter
2014-09-10 20:58 ` Brian Drummond
2014-09-10 23:40 ` Dennis Lee Bieber
2014-08-29 16:58 ` Niklas Holsti
2014-08-31 7:02 ` Dmitry A. Kazakov
2014-08-31 15:44 ` Brad Moore
2014-08-31 16:15 ` Dmitry A. Kazakov
2014-09-01 16:15 ` Brad Moore
2014-09-01 16:42 ` Dmitry A. Kazakov
2014-08-31 18:41 ` Niklas Holsti
2014-09-01 16:42 ` Dmitry A. Kazakov
2014-09-01 17:21 ` G.B.
2014-09-02 8:21 ` Dmitry A. Kazakov
2014-09-02 13:04 ` G.B.
2014-09-02 14:18 ` Dmitry A. Kazakov
2014-09-02 16:44 ` Jeffrey Carter
2014-09-02 19:02 ` Niklas Holsti
2014-09-02 23:19 ` Randy Brukardt
2014-09-03 1:40 ` gdotone
2014-09-04 9:26 ` Roy Emmerich
2014-09-04 17:58 ` Niklas Holsti
2014-09-05 11:47 ` Simon Clubley
2014-09-09 19:04 ` Roy Emmerich
2014-09-01 18:39 ` Niklas Holsti
2014-09-02 8:19 ` Dmitry A. Kazakov
2014-08-28 13:10 ` Dennis Lee Bieber
2014-08-29 2:52 ` Dennis Lee Bieber
2014-09-20 20:50 ` David Thompson
2014-08-27 16:17 ` Mike Silva
2014-08-27 16:36 ` Roy Emmerich
2014-08-27 16:58 ` Simon Clubley
2014-08-29 19:36 ` johnscpg
2014-08-30 15:06 ` Stephen Leake
2014-09-02 21:40 ` rrr.eee.27
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox