C++ Logo

std-proposals

Advanced search

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

From: Bo Persson <bo_at_[hidden]>
Date: Mon, 21 Sep 2026 15:24:34 +0200
On 2026-09-21 at 14:08, Liam Graham via Std-Proposals wrote:
> 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.
We have seen uses of pragma for this, for example

#pragma call(reg_param=>(ax, dx))

(TopSpeed C++ in 1990)

You don't need a new keyword for that.

Received on 2026-09-21 13:24:44