Re: [PATCH] C undefined behavior fix

From: dewar@gnat.com
Date: Wed Jan 09 2002 - 16:54:38 EST


<<Would ordering rules help answer that? If you write two separate
loads you have two separate side effects that are ordered in time,
while for a single big load they occur concurrently. If the construct
where those two loads occur does not allow for side effects to be
interleaved, then the "as if" principle seems to say you cannot
legally merge the loads.
>>

Yes maybe, but it's not air tight :-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jan 15 2002 - 21:00:29 EST