comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Rubin <no.email@nospam.invalid>
Subject: Re: Getting started with bare-board development
Date: Mon, 14 Nov 2016 00:11:37 -0800
Date: 2016-11-14T00:11:37-08:00	[thread overview]
Message-ID: <87lgwmeb0m.fsf@nightsong.com> (raw)
In-Reply-To: o0anol$qna$1@dont-email.me

Adam Jensen <hanzer@riseup.net> writes:
> It would probably help a lot to see a very basic little ("Hello,
> Real-Time World") example of [your development approach to] real-time
> software with a mocked hardware interface that can be executed directly
> on a workstation. I suppose the hardware could be as simple as a clock
> and maybe a counter or two.

If it were me, I'd set up the test harness with some kind of event queue
that would allow scheduling i/o completions, interrupts etc. to happen
at specified timestamps in the future.  Then when you run the test, only
the time ticks where something happens would get executed, without the
idle ticks causing any delays in the test.  The idea is you want your
tests to be fast even if the system being simulated is much slower.
That lets you run the tests more frequently, which is a good thing.

> Maybe there could be some interrupts and two or three tasks that do
> something very simple. And maybe all of this could take place under
> the Ravenscar profile. Would that be a lot of effort to write and
> post?

To me that sounds like a lot of work for the purpose of a news post.
You might look at some existing test framework (maybe not in Ada) and
some programs that use it.


  reply	other threads:[~2016-11-14  8:11 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11 22:19 Getting started with bare-board development Adam Jensen
2016-11-11 22:43 ` Maciej Sobczak
2016-11-12  9:45 ` G.B.
2016-11-12 16:14   ` Adam Jensen
2016-11-12 19:15     ` artium
2016-11-12 21:37       ` Adam Jensen
2016-11-13  4:01     ` Jeffrey R. Carter
2016-11-13 20:03       ` Adam Jensen
2016-11-13 21:04         ` Jeffrey R. Carter
2016-11-13 22:00           ` Adam Jensen
2016-11-14  8:11             ` Paul Rubin [this message]
2016-11-14 23:03               ` Adam Jensen
2016-11-14  9:04             ` Dmitry A. Kazakov
2016-11-14 23:35               ` Adam Jensen
2016-11-15  8:38                 ` Dmitry A. Kazakov
2016-11-15  9:58                   ` Niklas Holsti
2016-11-15 17:32                   ` Adam Jensen
2016-11-16  9:30                     ` Dmitry A. Kazakov
2016-11-15  0:06             ` Jeffrey R. Carter
2016-11-14 18:17     ` Simon Wright
2016-11-14 22:52       ` Adam Jensen
2016-11-12 20:59 ` Brian Drummond
2016-11-15  1:14 ` antispam
2016-11-15  4:20   ` Adam Jensen
2016-11-19 22:46     ` antispam
2016-11-15 19:34 ` Robert Eachus
2016-11-15 22:07   ` Adam Jensen
replies disabled

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