The register storage-class specifier
suggest changeThe register specifier can be applied to an object with automatic storage duration:
register size_t count = 467;
Historically, it suggested that access to the object should be especially fast. Modern compilers perform register allocation independently, so the hint rarely improves generated code.
The language restriction is more important: the unary & operator cannot be applied to a register object. Declaring an array with register is therefore especially problematic in older C versions because most uses require array-to-pointer conversion. C23 relaxed several register restrictions, but using it still adds little value and can reduce compatibility with earlier language modes.
Do not use register as an optimization technique in new code. Write clear code, enable optimization, and use profiling to find actual performance bottlenecks.