[project @ 2001-01-16 12:31:18 by simonmar]
authorsimonmar <unknown>
Tue, 16 Jan 2001 12:31:18 +0000 (12:31 +0000)
committersimonmar <unknown>
Tue, 16 Jan 2001 12:31:18 +0000 (12:31 +0000)
Add GhcUnregisterised, to make unregisterised compilation the default.
Also include a lengthy comment about how the whole unregisterised
compilation / boostrapping thing is supposed to hold together.

mk/config.mk.in

index 4390373..c2b9ce1 100644 (file)
@@ -164,6 +164,24 @@ GhcHcOpts=-O -Rghc-timing
 # GhcWithHscBuiltViaC - build GHC compiler proper (\`hsc') from .hc files?
 GhcWithHscBuiltViaC=@BootingFromHc@
 
+# Build a compiler that will build *unregisterised* libraries and
+# binaries by default.  Unregisterised code is supposed to compile and
+# run without any support for architecture-specific assembly mangling,
+# register assignment or tail-calls, and is therefore a good way to get
+# started when porting GHC to new architectures.
+#
+# If this is set to NO, you can still use the unregisterised way
+# (way 'u') to get unregisterised code, but the default way will be
+# registerised.
+#
+# NOTE: this is not the same as building the compiler itself
+# unregisterised.  That's done by either (a) bootstrapping with a
+# compiler that was built with GhcUnregisterized=YES, or (b)
+# bootstrapping with a compiler that has way 'u' libraries, and the
+# flag '-unreg' is added to GhcHcOpts above.
+#
+GhcUnregisterised=NO
+
 # Build a compiler with a native code generator backend
 # (as well as a C backend)
 #