So, for some interview questions I'm trying to find slightly messed up function signatures. For example, int median(unsigned char* values, int elements) as an example of a slightly messed up function signature. But I can't seem to generate any more :-(
So your recommendation is to make this interface decision based on an implementation detail of the function (that is, whether the function happens to store a copy of the input string value)? Really? — Don Hatch15 hours ago
wut
C++ is a language that literally revolves around lifetime and ownership
I find it interesting that they built x86 memory consistency instructions into the ARM architecture to speed up emulation. Though I don't know enough about the differences to know how difficult that is.
@ratchetfreak more of a page flag IIRC. I don't know what it means microarchitecturally other than they basically turn off a lot of superscalar reordering
Honestly kind of surprised x86 hasn't introduced something in reverse. A flag that allows a code segment to follow more RISC-like rules