News for hackers. Stuff that matters.
Re:To reinvent the processor by bogomipz on Sunday May 12, 2019 @12:15AM (#19890106)
The author states:

>"A Skylake CPU has 348 physical registers per core, split over two different register files."

Just looking at some literature on recent Intel I can only see a fraction of this 348 number. I see the following:

16 general purpose registers 6 segment registers 1 flags register 8 x87 registers 16 SSE registers

Could someone explain where this 348 registers figure in the post comes from exactly?

Re:To reinvent the processor by Nyan on Sunday May 12, 2019 @01:13AM (#19890278)
You're confusing instruction-set architecture with micro-architecture.

The x86-64 ISA defines 16 integer ("logical") registers, for example, however, Skylake has (don't quote me on the figure) 168 physical integer registers. For register renaming to work, you need more physical registers than logical registers because the logical registers need to be mapped to some physical registers, possibly multiple times (e.g. for speculation).

Re:To reinvent the processor by pkaye on Sunday May 12, 2019 @01:18AM (#19890296)
Those are the architectural registers. Physical registers also include those extra ones needed to implement register renaming to eliminate data dependencies. https://en.wikipedia.org/wiki/Register_renaming#Architectura...
Re:To reinvent the processor by bogomipz on Sunday May 12, 2019 @11:30AM (#19892478)
Thanks, right I was confusing ISA level registers with those at the implementation/micro arch level. Cheers.
Re:To reinvent the processor by ClassyJacket on Sunday May 12, 2019 @12:59AM (#19890236)
I'm not an expert on this topic, but are there additional registers for the extended instructions like MMX and AVX?