[[project @ 2005-03-03 17:01:01 by simonmar]
simonmar**20050303170101
Add some text about platforms I forgot to commit before, and a couple
of wibbles to the porting section.
] {
hunk ./docs/building/building.xml 2955
+
+ Platform settings
+ Platform settings
+
+
+ There are three platforms of interest when building GHC:
+
+
+
+ The build platform
+
+ The platform on which we are doing this build.
+
+
+
+
+ The host platform
+
+ The platform on which these binaries will run.
+
+
+
+
+ The target platform
+
+ The platform for which this compiler will generate code.
+
+
+
+
+ These platforms are set when running the
+ configure script, using the
+ , , and
+ options. The mk/config.mk
+ file defines several symbols related to the platform settings (see
+ mk/config.mk for details).
+
+ We don't currently support build & host being different, because
+ the build process creates binaries that are both run during the build,
+ and also installed.
+
+ If host and target are different, then we are building a
+ cross-compiler. For GHC, this means a compiler
+ which will generate intermediate .hc files to port to the target
+ architecture for bootstrapping. The libraries and stage 2 compiler
+ will be built as HC files for the target system (see for details.
+
+ More details on when to use BUILD, HOST or TARGET can be found in
+ the comments in config.mk.
+
+
hunk ./docs/building/building.xml 3750
-$ make ghcconfig.h
+$ make
hunk ./docs/building/building.xml 3810
- T/ghc/includes/ghcconfig.h
+ T/ghc/includes/ghcautoconf.h
hunk ./docs/building/building.xml 3821
- Touch ghcconfig.h, just to make
+ Touch ghcautoconf.h, just to make
hunk ./docs/building/building.xml 3823
-$ touch H/ghc/includes/ghcconfig.h
+$ touch H/ghc/includes/ghcautoconf.h
}