GCC: is there a way to tell a compiler what range of number I expect? For instance there's a uint8_t in range [2, 17]. I expect the compiler will optimize code for that range and consider out-of-range values as undefined. #cpp
-
Show this thread
-
Replying to @johnregehr @pshufb
I like the idea that C does not have enough UB but maybe we can provide users with a way to add some more :-)
1 reply 0 retweets 10 likes -
Maybe something like this compiler? http://groups.csail.mit.edu/cag/bitwise/bitwise-pldi2k.pdf …
0 replies 0 retweets 2 likes
8:34 PM - 21 Mar 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.