forcing compilers to inline (or to not inline)

Discussion of chess software programming and technical issues.

Moderator: Ras

Aleks Peshkov
Posts: 895
Joined: Sun Nov 19, 2006 9:16 pm
Location: Russia
Full name: Aleks Peshkov

Re: forcing compilers to inline (or to not inline)

Post by Aleks Peshkov »

I discovered the artifact of inlining unlimited recursion by observed speed up and profiler output. It was a valid and complete perft engine. Later changes broke unrolling and I am not sure where was the difference.
MSVC2005 was not able to keep m_Lock inside a register.
GCC seemed to be worse in register optimization, but it is much better understanding inline assembler due extended syntax.