Re:What? More 8-Bit Microcontrollers?
by gsliepen on Friday July 01, 2022 @08:51AM
(#31945676)
While the C standard does say that integer promotion happens, if the result is being cast back to char again, a C compiler will see that it doesn't need to operate on 16 bits and is allowed to optimize the result back to 8 bit operations. See for example: https://godbolt.org/z/zM8reeqrc
[ Parent
| on HN ]
There are no comments on this comment yet.