On Tue, Feb 21, 2017 at 3:35 AM, Erik de Castro Lopo <mle+hs@mega-nerd.com> wrote:
It may however (as the SO response suggests) be possible to generate
C code from GHC and compile that C code with with a C compiler that
can generate Xeon Phi binaries.

ghc hasn't generated C code for a while, aside from unregisterised.

It's not truly a different architecture, but a reorganization of the standard architecture. Unfortunately, ghc doesn't currently make good use of the key Xeon Phi components even in the standard architecture; packages that want to make use of them generally use -fllvm because LLVM is better at using them, even given that LLVM isn't very good at understanding what ghc feeds it. This suggests that -fflvm might be useful in taking advantage of Xeon Phi architecture with ghc.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net