News for hackers. Stuff that matters.
Re:The Itanium processor, part 3: The Windows calling conven... by pcwalton on Wednesday July 29, 2015 @01:53PM (#9970338)
> But there is a lot of work for the compiler here, wow. Knowing the maximum number of registers that is needed for any function call made within a function? Ouch.

Compilers already do that, to allocate outgoing argument space that can be reused between procedure calls. Saves needless stack manipulation for spilled outgoing parameters.

> And again, rotating the registers to avoid hitting the stack, incredibly powerful.

SPARC did this too. It's a classic RISCism: https://en.wikipedia.org/wiki/Register_window

Re:The Itanium processor, part 3: The Windows calling conven... by simula67 on Wednesday July 29, 2015 @03:58PM (#9971184)
> SPARC did this too.

I thought this experiment was a failure since most operating systems do multitasking : http://ieng9.ucsd.edu/~cs30x/sparcstack.html