Author: Tom Likens
Date: 05:38:52 06/23/04
Go up one level in this thread
On June 23, 2004 at 05:10:07, Uri Blass wrote: >I ask because Dieter told me in an email that I can install Linux, where I can >get the newest Intel compiler and it is free for non commercial use. > >A related question is if I can see examples of code that work under windows and >descreption of changes that are done to compile it under linux. > >Another question is if a program that is compiled under linux can work under >interfaces like winboard that are based on windows. > >I guess that there should be no problem and as far as I know tord writes gothmog >under linux and it runs under winboard. >When I think about it maybe I need some #if #def to make it work. > >Uri Hello Uri, A couple of things. I agree with Fabien, if I were you I'd wait till after WCCC to make the changes required to make your program compile under Linux. That said, once WCCC is over then I wholeheartedly recommend that you make it portable, for a host of reasons. First, you will probably catch subtle bugs. Compiling your program under multiple operating systems and compilers is an *excellent* way to highlight questionable constructs. Second making it available under another OS is a great learning vechicle. And finally, on a personal note, I would love to have a version of Movei to play against under Linux ;-) Now all that said, to answer your original question. Djinn is developed under Linux but compiles under both Linux and Windows. Looking through the source code almost all of the changes fall into the following categories: 1. Directory access (different system calls) 2. I/O- functions to check if keys are waiting in the key buffer etc. 3. System timers 4. Printing 64-bit values requires different format specifiers 5. "long long" vs. __int64 differences (handled by a typedef) These seem to be the major differences. Nothing too difficult and once you have the time you should accomplish the changes rather easily. regards, --tom
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.