From 4a84bb362c9433bc3fa6df42981cde41677d652b Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 16 Jan 2001 12:31:18 +0000 Subject: [PATCH] [project @ 2001-01-16 12:31:18 by simonmar] 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mk/config.mk.in b/mk/config.mk.in index 4390373..c2b9ce1 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -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) # -- 1.7.10.4