Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

All reads and writes to mapped memory in this code are undefined behavior! #1

Open
ZiCog opened this issue Oct 29, 2020 · 0 comments
Open

Comments

@ZiCog
Copy link

ZiCog commented Oct 29, 2020

Given that this code makes no use of "volatile" when reading and writing from mapped memory it's behavior is undefined as per the C standard.

As such it is only a matter of luck that it works at all!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant