[Info-vax] Coding with/without RDBMS

chris chris-nospam at tridac.net
Sat Oct 16 08:44:45 EDT 2021


On 10/16/21 02:35, Lawrence D’Oliveiro wrote:
> On Saturday, October 16, 2021 at 1:46:02 PM UTC+13, Arne Vajhøj wrote:
>> Anybody that know whether Misra C++ permits auto?
>
> As I recall, C++ was specifically banned.

In the past, most safety critical system  design precluded things
like dynamic memory allocation, garbage collection or any part
of the system that could not be shown to be fully deterministic.
Traditional memory allocation schemes can result in fragmentation
and denial of requests. C++ creation of objects / destruction and
garbage collection relies heavily on dynamic memory allocation
schemes.

In practice, the way that such systems got around the memory allocation
problem was to size the requirements at design time + a safety factor,
then implement that as fixed sized lists of one or more sized blocks.
in effect, write their own memory management.

Years since I looked at Misra, but most of it seemed like common sense
to at the time. Perhaps things have changed by now,  with a stripped
down C++ considered acceptable...

Chris






More information about the Info-vax mailing list