C++ Logo

std-proposals

Advanced search

[std-proposals] PROPOSAL: Reintroduce register — wise for developer-first decisions.

From: Liam Graham <liamgraham_at_[hidden]>
Date: Mon, 21 Sep 2026 12:08:46 +0000
Treat it like a storage class, not as a compiler hint

Register int X["R8"]
Or perhaps
Register int X[0] where [N] is the register file index. The issue is calling conventions. But allow the developer to shoot themselves in the foot if they choose.

#pragma register(RAX)
[[register:RAX]]

Etc etc

Received on 2026-09-21 12:08:48