Special code for black and white

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
Kempelen
Posts: 620
Joined: Fri Feb 08, 2008 10:44 am
Location: Madrid - Spain

Re: Special code for black and white

Post by Kempelen »

bob wrote:
Kempelen wrote:
Harald Johnsen wrote: Now, look again the assembler output, no index.

HJ.
ajaja.....
I see the point now. The trick is the 'inline' keyword!
You generally don't even need to worry about that as the compiler will do it automagically, so long as you compile everything together so that it can see the caller and callee when compiling. Otherwise you have to tell it (Intel at least) that you want inter-file optimizations...
I see...., I'm trying to compile with inline bethween different files, and C99 force to change the way I have declared the functions. Need time to do things property

I have this in my todo list and will notify you of the improvements this cause to my engine.