4 ms·
Using bitfields to represent register layouts is completely broken. The layout of bitfields is implementation defined.
by sigjuice 8y ago
Using bitfields to represent register layouts is completely broken. The layout of bitfields is implementation defined.
- viraptor 8y agoSince you're (almost always) using a single, well defined toolchain for embedded development, does "implementation defined" mean "completely broken"? Your register and ports are implementation defined in the first place.
- pjmlp 8y agoMeans that even the compiler vendor is free to switch the order when you upgrade to a new toolchain version.