Changes between Version 3 and Version 4 of Commentary/PlatformNaming


Ignore:
Timestamp:
Mar 24, 2013 5:53:03 PM (2 years ago)
Author:
mtahmed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/PlatformNaming

    v3 v4  
    2828where ''xxx'' is the appropriate value: eg. `i386_TARGET_ARCH`. However '''GHC is moving away from using CPP for this purpose''' in many cases due to the problems it creates with supporting cross compilation. 
    2929 
    30 So instead it the new plan is to always build GHC as a cross compiler and select the appropriate values and backend code generator to run and runtime. For this purpose there is the Platform module ([[GhcFile(compiler/utils/Platform.hs)]]). That contains various methods for querying the !DynFlags ([[GhcFile(compiler/main/DynFlags.hs)]]) value for what platform GHC is currently compiling for. You should use these when appropriate over the CPP methods. 
     30So instead of it the new plan is to always build GHC as a cross compiler and select the appropriate values and backend code generator to run and runtime. For this purpose there is the Platform module ([[GhcFile(compiler/utils/Platform.hs)]]). That contains various methods for querying the !DynFlags ([[GhcFile(compiler/main/DynFlags.hs)]]) value for what platform GHC is currently compiling for. You should use these when appropriate over the CPP methods.