-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I've tried running FLOPS in Windows:
First, one have to change some int and long to stdint's type (int32_t
and int64_t
). After that, I tried running it and the performance was horrible. Then, I figured out, looking at assembly, that the loop was compiled poorly. I noticed I was using a 32 bit compiler (mingw
which is 32 bits). Lastly, I tried compiling it with a 64 bit compiler (I used mingw-w64
), using the Windows build (MingW-W64-builds
) and the Arch Linux one (mingw-w64-gcc-bin
). Both gave me the same result: segmentation fault. I found somewhere that running it with 32 bits but having a segfault with 64 bits could be caused to some issues with the stack, which should be solved using -fno-stack-protector
. This does not solve the segfault. I love you, Windows ❤️