LLVM x64 in Visual Studio

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: LLVM x64 in Visual Studio

Post by velmarin »

ZirconiumX wrote:

Code: Select all

#include <windows.h> // add this
#endif
That should fix it.
I'd also appreciate some help in porting Dorpsgek to MSVC, because it seems to be crashing horribly.
If already compiled, even with the intrinsic of MinGW (builtins_).
Joost Buijs wrote:Since Visual Studio 2015 update 1 Clang 3.7 (32 and 64 bit) is included by Microsoft and it uses the Microsoft code generator. The current version of Clang is 3.9, so it lags a little bit behind.

I compiled my engine with it, it works fine although the executable runs a little bit slow because it doesn't support the intrinsics I use, the intrinsics are emulated in the header and they don't use the equivalent machine instructions.

In the mean time there have been a few updates to it, but I didn't check it since.

https://blogs.msdn.microsoft.com/vcblog ... -update-1/
I installed it at the time the Microsoft Tolchain. But as said you just updated.
Tolchain LLVM is updated every week.
LLVM although 32-bit executable (tolchain Microsoft is 32-bit) manages and produces executables 64-bit.

From there is the question, if the tolchain is 64-bit, produced us some benefit?
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: LLVM x64 in Visual Studio

Post by velmarin »

ZirconiumX wrote: I'd also appreciate some help in porting Dorpsgek to MSVC, because it seems to be crashing horribly.
Otherwise, directive inline Windows compiler is _inline.
Otherwise will be hundreds of errors.

Code: Select all

#ifdef WIN32 
#define inline _inline// add this 
#endif