3 ms·
> but without dynamic allocation how does a program handle large state with indeterminate lifetimes? If you haven't, I strongly encourage taking a workshop/cou
by BeetleB 3y ago
> but without dynamic allocation how does a program handle large state with indeterminate lifetimes?
If you haven't, I strongly encourage taking a workshop/course on requirements engineering (not specific to SW nor safety). One thing that stood out is a requirement that says things like "indeterminate" or "large" are red flags. A requirement should state bounds on what sizes it should handle.
> Or when you need a temporary buffer that’s too big to live on the stack?
Do you have an example of where this may occur in a safety critical system?
I've forgotten the details, but many/most forbidden things are allowed in the code provided you have watchdogs for mitigation - so if things did fail it could safely shut down. I don't recall if dynamic allocation fell into that category.