问题描述
是否可以使用 /www.haskell.org/ghc/rel =noreferrer> Glasgow Haskell Compiler for common architecture?
如果不是,该功能是否计划(GHC 7.0)GHC不支持交叉编译,在不久的将来会被开发出来。
。截至2013年,支持交叉编译在GHC 7.8.1中运行良好。
请参阅 wiki页面上的状态。
讨论
GHC一直支持自交叉编译(即,您可以到一个新的体系结构)。然而,GHC作为一个交叉编译器,运行在主机上,但是产生了以另一个为目标的二进制文件,目前尚未得到支持。
尽管如此,GHC 7新的LLVM后端,工作以添加交叉编译支持。
状态似乎是,来自Mark Lentczner的, 此时,我可以构建并链接并运行stage1交叉编译器。请继续关注GHC 7.2
Is it possible to do cross-compilation with the Glasgow Haskell Compiler for common architectures?
If not, is this feature planned to be developed in the near future?
As of 2013, "support for cross-compilation works reasonably well in GHC 7.8.1".
See the status on the CrossCompilation wiki page.
Discussion
GHC has always supported self-cross-compilation (i.e. you can port GHC to a new architecture). However, GHC as a cross-compiler, that runs on a host, but produces binaries that target another, has not been supported.
As of GHC 7 though, with the new LLVM backend, work is being undertaken to add cross-compilation support.Status appears to be, from Mark Lentczner, "At this point I can build and link and run a stage1 cross-compiler." So stay tuned for GHC 7.2
这篇关于与GHC交叉编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!