I want to use a single-element struct purely for type safety. However, it would be desired to behave exactly like code using the underlying type including passing it directly in registers (similarly to #repr[transparent]
in Rust).
I am asking about specific compilers, but of course if there is a standard way, that's even better.
(Yes, I know any differences are probably going to be trivial, but at the least this will allow me to actually measure them without rewriting a lot of code.)