What is the current GHC status on 64-bit Windows?

My modern understanding

  • No 64-bit GHC, ticket # 1884
  • The 32-bit GHC and the binaries it creates work fine because the Windows boot loader converts 64-bit OS calls and pointers. The same goes for DLL
  • There is no mixing of 32-bit and 64-bit code (i.e. your 32-bit Haskell DLL will not be friends with a 64-bit program that wants to use it).
  • The latest discussion is a thread launched on May 2011

It is right? Are there any pitfalls to look out for, especially as an FFI user? For example, if I were to export some Haskell code as a 32-bit DLL to some kind of Windows program, should I expect it to work?

Edit : it looks like you will need a 64-bit DLL for a 64-bit process.

+7
source share
2 answers

I don’t know if anyone will be actively working on a 64-bit codegen right now, but a 32-bit haskell will work fine while you are only talking to 32-bit FFI libraries (and / or built-in to 32-bit host programs ) If you want to interact with 64-bit programs, you will need to use some form of IPC, since 32-bit and 64-bit code cannot coexist in the same process.

+1
source

64-bit windows are now supported. There is a binary distribution of 64-bit GHC.

There is no 64-bit Haskell platform, though.

0
source

All Articles