F
Flash Gordon
Eligiusz Narutowicz wrote, On 27/04/08 20:19:
So how are you going to ensure that memory fragmentation does not occur?
Only some of the time. Some times not using it is the *best* solution,
and that is far more likely to be the case in safety critical (or even
safety related) SW than in other areas.
So limited that people can spend there entire careers on such SW. I
worked in a company for 15 years where dynamic allocation and recursion
where banned, and I was one of many developers and the ban was in place
before I joined. Most of that SW was not safety critical, but some was.
A lot more of the SW was mission critical.
Obviously there is a massive amount of SW where such a ban is not
appropriate.
When developing for a safety critical system your job *is* to develop
for the worst case, because if not someone (or many people) can end up
dead! I'm not exaggerating by the way, I have worked on a system where
an incorrect result from the SW could lead pretty directly to a
fatality, although normally the system designers managed to have things
arranged so that there was a physical system to prevent fatality rather
than just SW.
Obviously it *can* fail. A programmers job is to ensure it doesnt in a
properly configured system.
So how are you going to ensure that memory fragmentation does not occur?
And not using it is not a solution.
Only some of the time. Some times not using it is the *best* solution,
and that is far more likely to be the case in safety critical (or even
safety related) SW than in other areas.
Very, very, very , very limited yes.
So limited that people can spend there entire careers on such SW. I
worked in a company for 15 years where dynamic allocation and recursion
where banned, and I was one of many developers and the ban was in place
before I joined. Most of that SW was not safety critical, but some was.
A lot more of the SW was mission critical.
Obviously there is a massive amount of SW where such a ban is not
appropriate.
But if you program for worst case then you might as well give up in my
opinion.
When developing for a safety critical system your job *is* to develop
for the worst case, because if not someone (or many people) can end up
dead! I'm not exaggerating by the way, I have worked on a system where
an incorrect result from the SW could lead pretty directly to a
fatality, although normally the system designers managed to have things
arranged so that there was a physical system to prevent fatality rather
than just SW.