Changes between Version 3 and Version 4 of Building/CrossCompiling


Ignore:
Timestamp:
Jan 18, 2013 9:06:12 AM (15 months ago)
Author:
simonmar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/CrossCompiling

    v3 v4  
    44This page describes how to do cross-compilation with GHC.  That is: 
    55 
    6   * '''Building GHC as a cross-compiler''' building a GHC binary that runs on one platform but produces code for a different platform. 
    7   * '''Cross-compiling GHC itself''' building GHC on one platform that ''runs'' on another platform and generates code for it. 
     6 * '''Building GHC as a cross-compiler''': Create a compiler that runs on one platform, but targets another. Examples are building a GHC that: 
     7   * runs on Mac OS X, but targets iOS 
     8   * runs on x86_64 linux, but targets i386 
     9   * runs on some existing GHC supported platform, but targets a smaller embedded platform 
     10 * '''Cross-compiling GHC itself''': Build on one platform a compiler that runs on, and targets another.  Examples: 
     11   * [http://takeoffgw.sourceforge.net/ TakeoffGW] is a distribution of Unix tools for Windows, built by cross-compiling on a Linux machine.  They would like to be able to build and distribute GHC this way.  It might be useful for us to be able to cross-compile a Windows GHC from Linux too. 
     12   * build a 64-bit GHC on OS X, by cross-compiling using the 32-bit version. 
     13   * We could port to Win64 (#1884) by cross-compiling using a 32-bit Windows GHC. 
     14   * Other porting tasks might be easier, given a suitable cross-compilation toolchain. 
    815 
    916== Terminology and background ==