Changes between Initial Version and Version 1 of CrossCompilationDesign


Ignore:
Timestamp:
Feb 23, 2011 2:07:05 AM (3 years ago)
Author:
thoughtpolice
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CrossCompilationDesign

    v1 v1  
     1There are several people now interested in working on turning GHC into a Real Cross Compiler (something akin to the design laid out [wiki:CrossCompilation here].) This page covers that WIP, as well as architectural/design notes. 
     2 
     3= Current work =  
     4 * Brian Bloniarz implemented a cross compilation mode for hsc2hs. You can find the patches [http://www.haskell.org/pipermail/cvs-ghc/2010-December/058508.html here]. These have yet to be merged by GHC HQ, but we would like them to be! 
     5 * Dan Knapp is working on the native code generators - removing everything that uses the pre-processor and instead threading an `Architecture` type through the compiler, containing ABI information so we can generate the correct code at runtime. You can check out his work by doing 
     6   {{{ 
     7darcs get http://dankna.com/software/darcs/ghc-darcs-dnk-cross-compilation/ 
     8   }}} 
     9 
     10= Other things worth considering/need doing/questions = 
     11 * The build system. This is the Big Mother - the design is laid out [wiki:Building/Architecture here]. There are various things worth considering, like the fact that GHC builds programs as part of the build routine which it then uses, etc. 
     12 * Will the RTS need modifications? We must build it multiple times with both the host and target toolchain C compilers, so it should mostly be OK, but we may need to do more 
     13 
     14= Design notes = 
     15 
     16TODO FIXME