3 ms·
Yes, you need to find a way to have the compiler not elide memset() or this particular function. That part is probably not portable. You can cast to volatile,
by cryptonector 5y ago
Yes, you need to find a way to have the compiler not elide memset() or this particular function. That part is probably not portable.
You can cast to volatile, but casting away volatile-ness and dereferencing the resulting pointer is UB.
- chrisseaton 5y ago> That part is probably not portable. If you need that part, and that part is not portable, then your solution is not portable is it!