I think it is way more complicated than just a library with the registers.

It has to do with the compiler itself.

I'd love to see if this is possible, though my hopes are really low.

Ioannis