3 ms·
I think the point is that most ordinary C-code should already conform to this access pattern. The side comment about aliasing is a great big hint in that direct
by pja 6y ago
I think the point is that most ordinary C-code should already conform to this access pattern. The side comment about aliasing is a great big hint in that direction.
(This article is grist to the mill of my "every CPU eventually evolves to become an interpreter for its dominant programming language" thesis.)
- convFixb 6y agoI wonder if this causes a performance penalty on position independent code, which seems to be used a lot on non-Windows platforms []. [] It always struck me as one of those propeller-head features that GCC & co. love but which the MS and Intel compilers avoid 'just to be on the safe side' :]
- zbjornson 6y agoHe mentions this doesn't work with RIP-relative addressing, but I don't see how it would cause a penalty otherwise.
- qppo 6y agore your thesis, can't wait for a WASM ISA on a commercial CPU and canvas instructions for its graphics coprocessor
- PaulDavisThe1st 6y agoyou'll need to wait for WASM to become "the dominant language" on a commercial CPU. definitely not next year.
- bryanlarsen 6y agoYes, AMD probably added the optimization because it was a common pattern emitted by compilers.