News for hackers. Stuff that matters.
Re:Memory-mapped IO registers in Zig. (2021) by auxym on Tuesday April 23, 2024 @09:26AM (#40131716)
Nim's maintainer agrees with you I believe, and the API is as you suggest (volatileLoad and volatileStore): https://nim-lang.org/docs/volatile.html

However, under the hood, Nim compiles to C. So these are macros that typecast to volatile, does the read (or write), then casts back to non-volatile.

(Small plug for my nim project that is somewhat related to OP: https://github.com/EmbeddedNim/svd2nim)

There are no comments on this comment yet.