News for hackers. Stuff that matters.
Re:The Ten Commandments for C Programmers (1987) by kevin_thibedeau on Saturday May 23, 2020 @01:02PM (#23284532)
Every MMU-less micro lets you read address 0.
Re:The Ten Commandments for C Programmers (1987) by monocasa on Saturday May 23, 2020 @01:46PM (#23284880)
A lot of micros have MPUs that'll catch address 0 accesses without a full MMU. AFAIK all ARMs newer than ARM7 (ie. ARMv5) have one for instance.
Re:The Ten Commandments for C Programmers (1987) by RealityVoid on Saturday May 23, 2020 @04:43PM (#23286237)
Yeah, they will, if you activated it. And if you made access to 0 address be caught explicitly ( you might have the MMU active but not have it configured in such a way)