Sujet : Re: Ichbiah 2022 compiler mode
De : kc-usenet (at) *nospam* chadwicks.me.uk (Kevin Chadwick)
Groupes : comp.lang.adaDate : 12. Sep 2024, 14:36:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbun82$8n6p$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : PhoNews/3.13.3 (Android/14)
If Ada did not have tasks with priorities, most of the Ada applications I have worked on in my life would have had to avoid Ada tasking and retreat to using some other real-time kernel, with ad-hoc mapping of the kernels's threads to Ada procedures.
>
Counter intuitively it is possible that this is holding Ada back. A lot of
Ada code cannot run without some fairly complex runtime support due to
tasks, protected objects, finalization etc.. Runtimes have to be developed
for each chip instead of each cpu. Atleast I assume that that is why these
features are not available to e.g. the light cortex-m33 or cortex-m4 or
cortex-m0+ runtimes. This requires rewriting code which isn't required with
equivalent C code such as containers and ip stacks etc.. Even support for
the Ada interrupt package is missing but it looks like porting that support
to chips is less work and research.
If you need advanced multi core support then using an OS seems like a more
suitable situation to be in to me.
-- Regards, Kc