Is Bare-Metal Programming Dead?
(www.designnews.com)
from cm0002@lemmy.world to programming@programming.dev on 10 Jan 2025 18:05
https://lemmy.world/post/24124038
from cm0002@lemmy.world to programming@programming.dev on 10 Jan 2025 18:05
https://lemmy.world/post/24124038
threaded - newest
No
reads article
No
Akshully, there are more levels below the machine code, with the mind-boggling complexity of modern CPUs and SoCs - but that doesn’t diminish the value of understanding it.
Depends on what CPU is getting used but it’s really fascinating.
That’s why I said “modern.” You know exactly what’s happening on a MOS 6502, for example, but when your top-of-the-line ARM SoC starts throwing bus faults because a CRC function returned a value that looked like a pointer to restricted SRAM …
Boy does it seem like this author is trying to push something. I wonder if…
…yep, sounds about right.
Aren’t function pointers against the MISRA standard?
I’m not saying they are bad because they can be really useful but when it comes to writing safe code I believe their usage is heavily discouraged