BB+ wrote:You should be able to manually edit a file by double-clicking on it and using whatever text editor you have. I think KLO said the same.
You can edit source files by expanding Source File filter, and double clicking a file. There are also optimizations that can be configured under project property...Google is very resourceful.
I think there is no reason to have the "bits.h" file (it is only used in Linux), though there is also no reason to delete it. You just have to tell the compiler that you are using WINDOWS, and so it should use
win32bits.h or
win64bits.h instead (this is what the
#define blocks do).
Thanks for the pointers BB+.
I defined the IH-win-linux.h for both RobboTotalCode and RobboTripleCode.
Here's my RobboTotalCode definition:
Code: Select all
#ifdef WINDOWS
#include <windows.h>
#define NOME_WINDOWS
/* 64 bits */
#define sint8 __int8
#define sint16 __int16
#define sint32 __int32
#define sint64 __int64
#define uint8 unsigned __int8
#define uint16 unsigned __int16
#define uint32 unsigned __int32
#define uint64 unsigned __int64
#define INLINE _inline
#define atoll _atoi64
#define TYPE_64_BIT "%I64d"
#if 1
#define MEMALIGN(a, b, c) a = _aligned_malloc (c, b)
#define ALIGNED_FREE(x) _aligned_free (x)
#else
#define MEMALIGN(a, b, c) a = malloc (c)
#define ALIGNED_FREE(x) free (x)
#endif
#define __builtin_prefetch /* 64-bits */
#ifdef WINDOWS_X64 /* 64 bits */
#include "win64bits.h"
#else
#include "win32bits.h"
#endif
Here's my RobboTripleCode definition:
Code: Select all
#ifdef WINDOWS
#include <windows.h>
#define NOME_WINDOWS
/* 64-bits */
#define sint8 __int8
#define sint16 __int16
#define sint32 __int32
#define sint64 __int64
#define uint8 unsigned __int8
#define uint16 unsigned __int16
#define uint32 unsigned __int32
#define uint64 unsigned __int64
#define INLINE _inline
#define atoll _atoi64
#define TYPE_64_BIT "%I64d"
#if 1
#define MEMALIGN(a, b, c) a = _aligned_malloc (c, b)
#define ALIGNED_FREE(x) _aligned_free (x)
#else
#define MEMALIGN(a, b, c) a = malloc (c)
#define ALIGNED_FREE(x) free (x)
#endif
#define __builtin_prefetch /* 64-bits */
#ifdef WINDOWS_X64 /* 64 bits */
#include "win64bits.h"
#else
#include "win32bits.h"
#endif
After attempting a compile, the Intel C++ XE 2011
Error List states these:
Code: Select all
Error 1 error : cannot open source file "pthread.h" C:\Users\PRIMA\Desktop\CSF - Copy\RobboTripleCode\IH-win-linux.h 68 1 ComStockfish_102RBsICC_x64
Error 2 error MSB6001: Invalid command line switch for "icl.exe". Parameter "path" cannot have zero length. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 12.0\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.0.targets 204 6 ComStockfish_102RBsICC_x64
And the
Output states these:
Code: Select all
1> RobboTripleGlue.cpp
1>..\..\RobboTripleCode/IH-win-linux.h(68): error : cannot open source file "pthread.h"
1> #include <pthread.h> /* for what when no SMP ? */
1> ^
1>
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 12.0\Microsoft.Cpp.x64.Intel C++ Compiler XE 12.0.targets(204,5): error MSB6001: Invalid command line switch for "icl.exe". Parameter "path" cannot have zero length.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It appears the lack of the "pthread.h" from the ComStockfish 1.0.2RBs source is the problem here? I could not locate this pthread.h any where from the downloaded ComStock1.0.2 package. Any pointers here? Thanks.