3 ms·
Do hard, real-time, embedded systems usually have arbitrary sized or changing heaps? I thought most avoided dynamic or non-deterministic resource use as much as
by nickpsecurity 10y ago
Do hard, real-time, embedded systems usually have arbitrary sized or changing heaps? I thought most avoided dynamic or non-deterministic resource use as much as possible. Restricting the heap to a known size ahead of time then reaping benefits of HRT GC & higher-level language still seems worthwhile in many use-cases.
- bjourne 10y agoThey don't, so there is certainly many use cases for real time gc:s. But keep in mind that the more parameters are known, such as heap size, memory allocation profile, software to run, hardware and so on the less useful gc becomes. Often the cost of the extra complexity + specialized hardware outweighs the benefits of using a gc:ed language.
- nickpsecurity 10y agoThose points are true. You have to balance these tradeoffs. The main point of my side of this discussion is (a) they exist and (b) they're useful sometimes so worth considering. That's all I'm saying.