C is a cool programming language where if you want to return a string from a function you have to set up an entire physical-universe human social system for adjudicating who is responsible for freeing it "In order to create a C string, you must first create civilization"
-
-
too bad if you mistakenly used undefined behavior
-
Out of all your list, data races (roughly corresponding to memory barriers) is the only one vaguely relevant to UB. Everything else preserves all behavior of arbitrary userspace asm (except timing) so it necessarily preserves behavior of C.
-
out of order execution can also be a problem in some architectures, but they compiler do the right thing , usually
-
Not sure what you mean. Visibility from other cores? If so that's just redundant with data races/[lack of] memory barriers.
-
no, there are cpus that reorder instructions and cause problems if you are not careful in puting NOPs in the correct place they're totally dependent on the compiler creating the correct sequences counting on reordering
End of conversation
New conversation -
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.