C++ Logo

std-discussion

Advanced search

Re: Does the C++ abstract machine recognize a temporal order of execution?

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 11 Jun 2026 06:56:25 -0700
On Wednesday, 10 June 2026 21:24:30 Pacific Daylight Time Tiago Freire via Std-
Discussion wrote:
> Neither your compiler nor your cpu respects that and the standard at least
> implicitly acknowledges this.

For the x86 world: while instructions may execute out-of-order, they are
*retired* in order which means all effects appear in order to the outside
world. It should be impossible to tell what executed out-of-order, except for
a few dedicated instructions.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2026-06-11 13:56:30