2 ms·
So is the idea that just because the two objects happen to appear sequentially in memory under a certain implementation, the compiler (or linker in this case?)
by ghostpepper 7y ago
So is the idea that just because the two objects happen to appear sequentially in memory under a certain implementation, the compiler (or linker in this case?) has no obligation to ensure that assumption holds?
- saagarjha 7y agoCorrect. (Although, the pointers being defined that way seems to make it quite unlikely that the compiler could optimize this incorrectly…)