News for hackers. Stuff that matters.
Re:Ginseng: Keeping secrets in registers when you distrust t... by MuffinFlavored on Friday April 05, 2019 @04:06PM (#19586495)
Do you think in the future more registers will be accessible, increasing performance?
Re:Ginseng: Keeping secrets in registers when you distrust t... by lightsighter on Friday April 05, 2019 @04:41PM (#19586807)
Probably not. The out-of-order execution units in the cores rely heavily on register renaming to remove anti-dependences in the instructions stream and get more instructions executing in parallel. History (so far in most cases) has shown that this is a better approach to getting good performance than having compilers or humans try to statically manage all the physical registers themselves.
Re:Ginseng: Keeping secrets in registers when you distrust t... by blattimwind on Friday April 05, 2019 @05:20PM (#19587154)
Your programs can potentially use all of those registers (or all those assigned to your task, if the particular core uses static partioning for registers). Unlike the compiler's work, the core does this based on real, current runtime information.
Re:Ginseng: Keeping secrets in registers when you distrust t... by WallWextra on Friday April 05, 2019 @04:49PM (#19586895)
More architected (i.e. program-visible) registers require more bits to encode.
Re:Ginseng: Keeping secrets in registers when you distrust t... by bluGill on Friday April 05, 2019 @04:53PM (#19586933)
Back when AMD designed x86_64 asked that question: they concluded that it was better only show a few registers because that was all compilers really needed (compilers writers had learned a lot of tricks from the mess that x86 was), and so they could better deal with a small instruction set that fewer registers offers for greater performance.
Re:Ginseng: Keeping secrets in registers when you distrust t... by ahartmetz on Sunday April 07, 2019 @07:20AM (#19596122)
But AMD also increased the number of general-purpose registers from ~6 in x86 (eax to edx and the not fully general purpose esi, edi, esp, ebp) to ~16 in AMD64 (rax to r16). ARM has ~32.
Re:Ginseng: Keeping secrets in registers when you distrust t... by MuffinFlavored on Saturday April 06, 2019 @07:39PM (#19593730)
> from the mess that x86 was

Is ARM seen as a mess? Are x86's days numbered as ARM catches up and becomes more widespread for personal computing devices?

Re:Ginseng: Keeping secrets in registers when you distrust t... by bluGill on Monday April 08, 2019 @10:34AM (#19605545)
ARM is much better as an instruction set, but it isn't clear if that will ever matter.
Re:Ginseng: Keeping secrets in registers when you distrust t... by ryacko on Friday April 05, 2019 @05:09PM (#19587076)
It depends on the complexity of the sensitive variables. This looks like a purely academic exercise.
Re:Ginseng: Keeping secrets in registers when you distrust t... by chrisseaton on Friday April 05, 2019 @05:31PM (#19587235)
They are accessible - they aren’t sitting there unused. They’re dynamically allocated to logical names as the program runs.