Re: Isn't this in favour of Ada??
- From: Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx>
- Date: 21 Jul 2005 11:32:01 -0400
Marin David Condic <nobody@xxxxxxxxxxx> writes:
> Besides, this can only work if you have an operating system.
It *can* work without an operating system.
>... If you
> *are* the operating system, you'd have to do something to bump the
> hardware to make an interrupt happen
Right.
>... and this may or may not be possible
> in all cases.
It's possible for many interrupts on many systems, with or without an
OS. Many machines have a "trigger interrupt" instruction.
I wouldn't insist that the "trigger interrupt" Ada routine be completely
portable. After all, the names of the interrupts are inherently
nonportable. It's still useful to have a standard procedure, for those
systems where it can work. I'd define it to raise an exception for
interrupts that cannot be triggered.uun
>... This is why I say if Ada had something like a "signal"
> entity that is typically tied to an interrupt, but (since its an Ada
> thing) can be triggered by some Ada mechanism, then you've got the
> problem solved. You could probably "Roll Your Own" - but I'm not sure
> how to do that and still utilize Ada's normal mechanisms for interrupt
> processing.
I think such a signal mechanism would add some inefficiency.
Perhaps not much, but when you're using interrupts on a bare
machine, you want to be as close to the metal as possible,
and Ada's current design allows for that.
I suspect that rolling your own will give better results, because then
the programmer is in charge of the efficiency tradeoffs, and the
programmer can take advantage of the particular systems of interest,
whereas the language designer has to be portable to pretty much every
machine under the Sun.
- Bob
.
- References:
- Isn't this in favour of Ada??
- From: Erlo Haugen
- Re: Isn't this in favour of Ada??
- From: Florian Weimer
- Re: Isn't this in favour of Ada??
- From: Larry Kilgallen
- Re: Isn't this in favour of Ada??
- From: Marin David Condic
- Re: Isn't this in favour of Ada??
- From: Ed Falis
- Re: Isn't this in favour of Ada??
- From: Marin David Condic
- Re: Isn't this in favour of Ada??
- From: Ed Falis
- Re: Isn't this in favour of Ada??
- From: Marin David Condic
- Re: Isn't this in favour of Ada??
- From: Robert A Duff
- Re: Isn't this in favour of Ada??
- From: Simon Wright
- Re: Isn't this in favour of Ada??
- From: Robert A Duff
- Re: Isn't this in favour of Ada??
- From: Marin David Condic
- Isn't this in favour of Ada??
- Prev by Date: Re: Isn't this in favour of Ada??
- Next by Date: Gnat-GCC integration
- Previous by thread: Re: Isn't this in favour of Ada??
- Next by thread: Re: Isn't this in favour of Ada??
- Index(es):
Relevant Pages
|
|