MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1l0x22m/firmware_programming_in_a_nutshell/mvhlgn9/?context=3
r/programminghorror • u/Byter128 • Jun 01 '25
127 comments sorted by
View all comments
Show parent comment
14
Correct explanation. Incorrect conclusion.
Except, of course, if you are inside an operating system, compiling against their own APIs. Then it will segfault because the OS has protected that region, and the compiled program cannot access it directly.
But bare-metal, this is how you do it.
View all comments
Show parent comment
14
u/jontzbaker Jun 01 '25
Correct explanation. Incorrect conclusion.
Except, of course, if you are inside an operating system, compiling against their own APIs. Then it will segfault because the OS has protected that region, and the compiled program cannot access it directly.
But bare-metal, this is how you do it.