3 ms·
Not in many important environments, eg especially those without virtual memory where the zero page can be mapped invalid. Talk to me about how good an idea it
by DamonHD 9y ago
Not in many important environments, eg especially those without virtual memory where the zero page can be mapped invalid.
Talk to me about how good an idea it is not to check potentially-NULL pointers in embedded systems.
- jstimpfle 9y agoSure I know about that... I don't do embedded, but the point is, if your program is wrong, it goes wrong. So? Fix it!
- DamonHD 9y agoAn embedded program using NULL may cause some serious damage, even physical. Code has bugs: avoiding the most serious failure modes is important pragmatically speaking.