devc1 wrote:
So, Optimization at the micro level (cpu cache, registers, smaller and aligned data) will be helpfull for all kinds of tasks. It may achieve quadriples of performance and even more looking at some simple tests I made.
No. Micro-optimization is always optional. Beneficial, yes, but not necessary.
devc1 wrote:
How about things such as task switching, can you get afaster register save/restore in long mode with some instruction ?
No. Just several good ole' pushes.
devc1 wrote:
The fxsave saves the state of MMX, FPU and SSE.
Yes.
devc1 wrote:
What about the xsave, xsaves, xsaveopt. I guess they save the AVX state but do they also save the registers ?
Read the Intel manuals
?
devc1 wrote:
Should I in 64 bit mode save registers one by one, isn't there any better way ?
It's the only way.