[Info-vax] The (now lost) future of Alpha.
Chris
xxx.syseng.yyy at gfsys.co.uk
Mon Aug 6 18:09:57 EDT 2018
On 08/06/18 00:49, Arne Vajhøj wrote:
>
> Compared to languages that use GC then C++ is pretty good in this
> regard.
>
Perhaps not as c++ does include the dynamic creation of objects and
subsequent garbage collection as a core part of the language. I would
have been more happy with a "C with classes" approach, but C++ has
become a bloated language that gets a lot of the unwary into
serious trouble, through excessive use of abstraction and trying to be
clever.
Anything that includes such features would be big red flag for much
real time work and anything safety critical, as it's indeterminate
in terms of it's worst case memory allocation and deallocation.
In such systems, it's not uncommon to statically allocate a set
of varying sized buffers at compile time. That after analysis to show
that worst case memory exhaustion will never occur. Typically double
what you think you need, in these days of cheap memory :-)...
Chris
More information about the Info-vax
mailing list