By: EduardoS (no.delete@this.spam.com), July 12, 2015 1:35 pm
Room: Moderated Discussions
Maynard Handley (name99.delete@this.name99.org) on July 12, 2015 12:32 pm wrote:
> I can offer one possible example. You leave the compiler out your discussion, but it is often the case that
> you have to indicate to the compiler (not just the HW) about memory re-ordering. So it's reasonable at that
> point to say "since this information has to be in the program, anyway, if you want correctness in the face of
> modern compilers, so why not propagate it down to the hardware, and we can perhaps usefully use it there?"
As I said before, memory barriers are stupid for this case.
> I can offer one possible example. You leave the compiler out your discussion, but it is often the case that
> you have to indicate to the compiler (not just the HW) about memory re-ordering. So it's reasonable at that
> point to say "since this information has to be in the program, anyway, if you want correctness in the face of
> modern compilers, so why not propagate it down to the hardware, and we can perhaps usefully use it there?"
As I said before, memory barriers are stupid for this case.