News for hackers. Stuff that matters.
Re:Let’s stop copying C (2016) by SlowRobotAhead on Wednesday January 23, 2019 @10:29AM (#18978950)
Haha, come over to embedded and tell me how that is supposed to work!
Re:Let’s stop copying C (2016) by jschwartzi on Wednesday January 23, 2019 @11:59AM (#18979994)
You use the MMU to create virtual address spaces and the kernel to provide a message passing interface. The MMU may cause you to incur some latency but in exchange you get some pretty good isolation between components of your system. Even more so if your kernel is proven using formal methods.
Re:Let’s stop copying C (2016) by tonyarkles on Wednesday January 23, 2019 @04:03PM (#18982928)
> You use the MMU

Must be nice to have one of those! Cortex-M* does not.

Re:Let’s stop copying C (2016) by jschwartzi on Wednesday January 23, 2019 @09:01PM (#18985348)
There's no need to get snarky. I've used similar parts before, for example TI's Hercules RM4 does not have an MMU either and so what I said wouldn't apply there. But that doesn't mean you would never have an MMU.
Re:Let’s stop copying C (2016) by tonyarkles on Monday January 28, 2019 @10:38AM (#19018236)
Indeed, my apologies. I actually quite like the idea. It reminds me a lot of Erlang, where you set up a bunch of small processes and if any of them die, you can a) try to recover quickly, or b) run in reduced functionality mode. I just haven't been fortunate enough to work with embedded processors where it'd be a good fit; they've either been on the small side (Cortex M, MSP430, AVR) or on the big side (iMX6, AM335x) and just run full-blown Linux.