Reorganisation of the source tree
[ghc-hetmet.git] / compiler / main / StaticFlags.hs
1 -----------------------------------------------------------------------------
2 --
3 -- Static flags
4 --
5 -- Static flags can only be set once, on the command-line.  Inside GHC,
6 -- each static flag corresponds to a top-level value, usually of type Bool.
7 --
8 -- (c) The University of Glasgow 2005
9 --
10 -----------------------------------------------------------------------------
11
12 module StaticFlags (
13         parseStaticFlags,
14         staticFlags,
15
16         -- Ways
17         WayName(..), v_Ways, v_Build_tag, v_RTS_Build_tag,
18
19         -- Output style options
20         opt_PprUserLength,
21         opt_PprStyle_Debug,
22
23         -- profiling opts
24         opt_AutoSccsOnAllToplevs,
25         opt_AutoSccsOnExportedToplevs,
26         opt_AutoSccsOnIndividualCafs,
27         opt_SccProfilingOn,
28         opt_DoTickyProfiling,
29
30         -- language opts
31         opt_DictsStrict,
32         opt_MaxContextReductionDepth,
33         opt_IrrefutableTuples,
34         opt_Parallel,
35         opt_RuntimeTypes,
36         opt_Flatten,
37
38         -- optimisation opts
39         opt_NoMethodSharing, 
40         opt_NoStateHack,
41         opt_LiberateCaseThreshold,
42         opt_CprOff,
43         opt_RulesOff,
44         opt_SimplNoPreInlining,
45         opt_SimplExcessPrecision,
46         opt_MaxWorkerArgs,
47
48         -- Unfolding control
49         opt_UF_CreationThreshold,
50         opt_UF_UseThreshold,
51         opt_UF_FunAppDiscount,
52         opt_UF_KeenessFactor,
53         opt_UF_UpdateInPlace,
54         opt_UF_DearOp,
55
56         -- misc opts
57         opt_IgnoreDotGhci,
58         opt_ErrorSpans,
59         opt_EmitCExternDecls,
60         opt_GranMacros,
61         opt_HiVersion,
62         opt_HistorySize,
63         opt_OmitBlackHoling,
64         opt_Static,
65         opt_Unregisterised,
66         opt_EmitExternalCore,
67         opt_PIC,
68         v_Ld_inputs,
69   ) where
70
71 #include "HsVersions.h"
72
73 import Util             ( consIORef )
74 import CmdLineParser
75 import Config           ( cProjectVersionInt, cProjectPatchLevel,
76                           cGhcUnregisterised )
77 import FastString       ( FastString, mkFastString )
78 import Util
79 import Maybes           ( firstJust )
80 import Panic            ( GhcException(..), ghcError )
81 import Constants        ( mAX_CONTEXT_REDUCTION_DEPTH )
82
83 import EXCEPTION        ( throwDyn )
84 import DATA_IOREF
85 import UNSAFE_IO        ( unsafePerformIO )
86 import Monad            ( when )
87 import Char             ( isDigit )
88 import List             ( sort, intersperse )
89
90 -----------------------------------------------------------------------------
91 -- Static flags
92
93 parseStaticFlags :: [String] -> IO [String]
94 parseStaticFlags args = do
95   (leftover, errs) <- processArgs static_flags args
96   when (not (null errs)) $ throwDyn (UsageError (unlines errs))
97
98     -- deal with the way flags: the way (eg. prof) gives rise to
99     -- futher flags, some of which might be static.
100   way_flags <- findBuildTag
101
102     -- if we're unregisterised, add some more flags
103   let unreg_flags | cGhcUnregisterised == "YES" = unregFlags
104                   | otherwise = []
105
106   (more_leftover, errs) <- processArgs static_flags (unreg_flags ++ way_flags)
107   when (not (null errs)) $ ghcError (UsageError (unlines errs))
108   return (more_leftover++leftover)
109
110
111 -- note that ordering is important in the following list: any flag which
112 -- is a prefix flag (i.e. HasArg, Prefix, OptPrefix, AnySuffix) will override
113 -- flags further down the list with the same prefix.
114
115 static_flags :: [(String, OptKind IO)]
116 static_flags = [
117         ------- GHCi -------------------------------------------------------
118      ( "ignore-dot-ghci", PassFlag addOpt )
119   ,  ( "read-dot-ghci"  , NoArg (removeOpt "-ignore-dot-ghci") )
120
121         ------- ways --------------------------------------------------------
122   ,  ( "prof"           , NoArg (addWay WayProf) )
123   ,  ( "unreg"          , NoArg (addWay WayUnreg) )
124   ,  ( "ticky"          , NoArg (addWay WayTicky) )
125   ,  ( "parallel"       , NoArg (addWay WayPar) )
126   ,  ( "gransim"        , NoArg (addWay WayGran) )
127   ,  ( "smp"            , NoArg (addWay WayThreaded) ) -- backwards compat.
128   ,  ( "debug"          , NoArg (addWay WayDebug) )
129   ,  ( "ndp"            , NoArg (addWay WayNDP) )
130   ,  ( "threaded"       , NoArg (addWay WayThreaded) )
131         -- ToDo: user ways
132
133         ------ Debugging ----------------------------------------------------
134   ,  ( "dppr-noprags",     PassFlag addOpt )
135   ,  ( "dppr-debug",       PassFlag addOpt )
136   ,  ( "dppr-user-length", AnySuffix addOpt )
137       -- rest of the debugging flags are dynamic
138
139         --------- Profiling --------------------------------------------------
140   ,  ( "auto-all"       , NoArg (addOpt "-fauto-sccs-on-all-toplevs") )
141   ,  ( "auto"           , NoArg (addOpt "-fauto-sccs-on-exported-toplevs") )
142   ,  ( "caf-all"        , NoArg (addOpt "-fauto-sccs-on-individual-cafs") )
143          -- "ignore-sccs"  doesn't work  (ToDo)
144
145   ,  ( "no-auto-all"    , NoArg (removeOpt "-fauto-sccs-on-all-toplevs") )
146   ,  ( "no-auto"        , NoArg (removeOpt "-fauto-sccs-on-exported-toplevs") )
147   ,  ( "no-caf-all"     , NoArg (removeOpt "-fauto-sccs-on-individual-cafs") )
148
149         ------- Miscellaneous -----------------------------------------------
150   ,  ( "no-link-chk"    , NoArg (return ()) ) -- ignored for backwards compat
151
152         ----- Linker --------------------------------------------------------
153   ,  ( "static"         , PassFlag addOpt )
154   ,  ( "dynamic"        , NoArg (removeOpt "-static") )
155   ,  ( "rdynamic"       , NoArg (return ()) ) -- ignored for compat w/ gcc
156
157         ----- RTS opts ------------------------------------------------------
158   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
159   ,  ( "Rghc-timing"       , NoArg  (enableTimingStats) )
160
161         ------ Compiler flags -----------------------------------------------
162         -- All other "-fno-<blah>" options cancel out "-f<blah>" on the hsc cmdline
163   ,  ( "fno-",                  PrefixPred (\s -> isStaticFlag ("f"++s))
164                                     (\s -> removeOpt ("-f"++s)) )
165
166         -- Pass all remaining "-f<blah>" options to hsc
167   ,  ( "f",                     AnySuffixPred (isStaticFlag) addOpt )
168   ]
169
170 addOpt = consIORef v_opt_C
171
172 addWay = consIORef v_Ways
173
174 removeOpt f = do
175   fs <- readIORef v_opt_C
176   writeIORef v_opt_C $! filter (/= f) fs    
177
178 lookUp           :: FastString -> Bool
179 lookup_def_int   :: String -> Int -> Int
180 lookup_def_float :: String -> Float -> Float
181 lookup_str       :: String -> Maybe String
182
183 -- holds the static opts while they're being collected, before
184 -- being unsafely read by unpacked_static_opts below.
185 GLOBAL_VAR(v_opt_C, defaultStaticOpts, [String])
186 staticFlags = unsafePerformIO (readIORef v_opt_C)
187
188 -- -static is the default
189 defaultStaticOpts = ["-static"]
190
191 packed_static_opts   = map mkFastString staticFlags
192
193 lookUp     sw = sw `elem` packed_static_opts
194         
195 -- (lookup_str "foo") looks for the flag -foo=X or -fooX, 
196 -- and returns the string X
197 lookup_str sw 
198    = case firstJust (map (startsWith sw) staticFlags) of
199         Just ('=' : str) -> Just str
200         Just str         -> Just str
201         Nothing          -> Nothing     
202
203 lookup_def_int sw def = case (lookup_str sw) of
204                             Nothing -> def              -- Use default
205                             Just xx -> try_read sw xx
206
207 lookup_def_float sw def = case (lookup_str sw) of
208                             Nothing -> def              -- Use default
209                             Just xx -> try_read sw xx
210
211
212 try_read :: Read a => String -> String -> a
213 -- (try_read sw str) tries to read s; if it fails, it
214 -- bleats about flag sw
215 try_read sw str
216   = case reads str of
217         ((x,_):_) -> x  -- Be forgiving: ignore trailing goop, and alternative parses
218         []        -> ghcError (UsageError ("Malformed argument " ++ str ++ " for flag " ++ sw))
219                         -- ToDo: hack alert. We should really parse the arugments
220                         --       and announce errors in a more civilised way.
221
222
223 {-
224  Putting the compiler options into temporary at-files
225  may turn out to be necessary later on if we turn hsc into
226  a pure Win32 application where I think there's a command-line
227  length limit of 255. unpacked_opts understands the @ option.
228
229 unpacked_opts :: [String]
230 unpacked_opts =
231   concat $
232   map (expandAts) $
233   map unpackFS argv  -- NOT ARGV any more: v_Static_hsc_opts
234   where
235    expandAts ('@':fname) = words (unsafePerformIO (readFile fname))
236    expandAts l = [l]
237 -}
238
239
240 opt_IgnoreDotGhci               = lookUp FSLIT("-ignore-dot-ghci")
241
242 -- debugging opts
243 opt_PprStyle_Debug              = lookUp  FSLIT("-dppr-debug")
244 opt_PprUserLength               = lookup_def_int "-dppr-user-length" 5 --ToDo: give this a name
245
246 -- profiling opts
247 opt_AutoSccsOnAllToplevs        = lookUp  FSLIT("-fauto-sccs-on-all-toplevs")
248 opt_AutoSccsOnExportedToplevs   = lookUp  FSLIT("-fauto-sccs-on-exported-toplevs")
249 opt_AutoSccsOnIndividualCafs    = lookUp  FSLIT("-fauto-sccs-on-individual-cafs")
250 opt_SccProfilingOn              = lookUp  FSLIT("-fscc-profiling")
251 opt_DoTickyProfiling            = lookUp  FSLIT("-fticky-ticky")
252
253 -- language opts
254 opt_DictsStrict                 = lookUp  FSLIT("-fdicts-strict")
255 opt_IrrefutableTuples           = lookUp  FSLIT("-firrefutable-tuples")
256 opt_MaxContextReductionDepth    = lookup_def_int "-fcontext-stack" mAX_CONTEXT_REDUCTION_DEPTH
257 opt_Parallel                    = lookUp  FSLIT("-fparallel")
258 opt_Flatten                     = lookUp  FSLIT("-fflatten")
259
260 -- optimisation opts
261 opt_NoStateHack                 = lookUp  FSLIT("-fno-state-hack")
262 opt_NoMethodSharing             = lookUp  FSLIT("-fno-method-sharing")
263 opt_CprOff                      = lookUp  FSLIT("-fcpr-off")
264 opt_RulesOff                    = lookUp  FSLIT("-frules-off")
265         -- Switch off CPR analysis in the new demand analyser
266 opt_LiberateCaseThreshold       = lookup_def_int "-fliberate-case-threshold" (10::Int)
267 opt_MaxWorkerArgs               = lookup_def_int "-fmax-worker-args" (10::Int)
268
269 opt_EmitCExternDecls            = lookUp  FSLIT("-femit-extern-decls")
270 opt_GranMacros                  = lookUp  FSLIT("-fgransim")
271 opt_HiVersion                   = read (cProjectVersionInt ++ cProjectPatchLevel) :: Int
272 opt_HistorySize                 = lookup_def_int "-fhistory-size" 20
273 opt_OmitBlackHoling             = lookUp  FSLIT("-dno-black-holing")
274 opt_RuntimeTypes                = lookUp  FSLIT("-fruntime-types")
275
276 -- Simplifier switches
277 opt_SimplNoPreInlining          = lookUp  FSLIT("-fno-pre-inlining")
278         -- NoPreInlining is there just to see how bad things
279         -- get if you don't do it!
280 opt_SimplExcessPrecision        = lookUp  FSLIT("-fexcess-precision")
281
282 -- Unfolding control
283 opt_UF_CreationThreshold        = lookup_def_int "-funfolding-creation-threshold"  (45::Int)
284 opt_UF_UseThreshold             = lookup_def_int "-funfolding-use-threshold"       (8::Int)     -- Discounts can be big
285 opt_UF_FunAppDiscount           = lookup_def_int "-funfolding-fun-discount"        (6::Int)     -- It's great to inline a fn
286 opt_UF_KeenessFactor            = lookup_def_float "-funfolding-keeness-factor"    (1.5::Float)
287 opt_UF_UpdateInPlace            = lookUp  FSLIT("-funfolding-update-in-place")
288
289 opt_UF_DearOp   = ( 4 :: Int)
290                         
291 opt_Static                      = lookUp  FSLIT("-static")
292 opt_Unregisterised              = lookUp  FSLIT("-funregisterised")
293 opt_EmitExternalCore            = lookUp  FSLIT("-fext-core")
294
295 -- Include full span info in error messages, instead of just the start position.
296 opt_ErrorSpans                  = lookUp FSLIT("-ferror-spans")
297
298 opt_PIC                         = lookUp FSLIT("-fPIC")
299
300 -- object files and libraries to be linked in are collected here.
301 -- ToDo: perhaps this could be done without a global, it wasn't obvious
302 -- how to do it though --SDM.
303 GLOBAL_VAR(v_Ld_inputs, [],      [String])
304
305 isStaticFlag f =
306   f `elem` [
307         "fauto-sccs-on-all-toplevs",
308         "fauto-sccs-on-exported-toplevs",
309         "fauto-sccs-on-individual-cafs",
310         "fscc-profiling",
311         "fticky-ticky",
312         "fall-strict",
313         "fdicts-strict",
314         "firrefutable-tuples",
315         "fparallel",
316         "fflatten",
317         "fsemi-tagging",
318         "flet-no-escape",
319         "femit-extern-decls",
320         "fglobalise-toplev-names",
321         "fgransim",
322         "fno-hi-version-check",
323         "dno-black-holing",
324         "fno-method-sharing",
325         "fno-state-hack",
326         "fruntime-types",
327         "fno-pre-inlining",
328         "fexcess-precision",
329         "funfolding-update-in-place",
330         "static",
331         "funregisterised",
332         "fext-core",
333         "frule-check",
334         "frules-off",
335         "fcpr-off",
336         "ferror-spans",
337         "fPIC"
338         ]
339   || any (flip prefixMatch f) [
340         "fcontext-stack",
341         "fliberate-case-threshold",
342         "fmax-worker-args",
343         "fhistory-size",
344         "funfolding-creation-threshold",
345         "funfolding-use-threshold",
346         "funfolding-fun-discount",
347         "funfolding-keeness-factor"
348      ]
349
350
351
352 -- Misc functions for command-line options
353
354 startsWith :: String -> String -> Maybe String
355 -- startsWith pfx (pfx++rest) = Just rest
356
357 startsWith []     str = Just str
358 startsWith (c:cs) (s:ss)
359   = if c /= s then Nothing else startsWith cs ss
360 startsWith  _     []  = Nothing
361
362
363 -----------------------------------------------------------------------------
364 -- convert sizes like "3.5M" into integers
365
366 decodeSize :: String -> Integer
367 decodeSize str
368   | c == ""              = truncate n
369   | c == "K" || c == "k" = truncate (n * 1000)
370   | c == "M" || c == "m" = truncate (n * 1000 * 1000)
371   | c == "G" || c == "g" = truncate (n * 1000 * 1000 * 1000)
372   | otherwise            = throwDyn (CmdLineError ("can't decode size: " ++ str))
373   where (m, c) = span pred str
374         n      = read m  :: Double
375         pred c = isDigit c || c == '.'
376
377
378 -----------------------------------------------------------------------------
379 -- RTS Hooks
380
381 #if __GLASGOW_HASKELL__ >= 504
382 foreign import ccall unsafe "setHeapSize"       setHeapSize       :: Int -> IO ()
383 foreign import ccall unsafe "enableTimingStats" enableTimingStats :: IO ()
384 #else
385 foreign import "setHeapSize"       unsafe setHeapSize       :: Int -> IO ()
386 foreign import "enableTimingStats" unsafe enableTimingStats :: IO ()
387 #endif
388
389 -----------------------------------------------------------------------------
390 -- Ways
391
392 -- The central concept of a "way" is that all objects in a given
393 -- program must be compiled in the same "way".  Certain options change
394 -- parameters of the virtual machine, eg. profiling adds an extra word
395 -- to the object header, so profiling objects cannot be linked with
396 -- non-profiling objects.
397
398 -- After parsing the command-line options, we determine which "way" we
399 -- are building - this might be a combination way, eg. profiling+ticky-ticky.
400
401 -- We then find the "build-tag" associated with this way, and this
402 -- becomes the suffix used to find .hi files and libraries used in
403 -- this compilation.
404
405 GLOBAL_VAR(v_Build_tag, "", String)
406
407 -- The RTS has its own build tag, because there are some ways that
408 -- affect the RTS only.
409 GLOBAL_VAR(v_RTS_Build_tag, "", String)
410
411 data WayName
412   = WayThreaded
413   | WayDebug
414   | WayProf
415   | WayUnreg
416   | WayTicky
417   | WayPar
418   | WayGran
419   | WayNDP
420   | WayUser_a
421   | WayUser_b
422   | WayUser_c
423   | WayUser_d
424   | WayUser_e
425   | WayUser_f
426   | WayUser_g
427   | WayUser_h
428   | WayUser_i
429   | WayUser_j
430   | WayUser_k
431   | WayUser_l
432   | WayUser_m
433   | WayUser_n
434   | WayUser_o
435   | WayUser_A
436   | WayUser_B
437   deriving (Eq,Ord)
438
439 GLOBAL_VAR(v_Ways, [] ,[WayName])
440
441 allowed_combination way = and [ x `allowedWith` y 
442                               | x <- way, y <- way, x < y ]
443   where
444         -- Note ordering in these tests: the left argument is
445         -- <= the right argument, according to the Ord instance
446         -- on Way above.
447
448         -- debug is allowed with everything
449         _ `allowedWith` WayDebug                = True
450         WayDebug `allowedWith` _                = True
451
452         WayThreaded `allowedWith` WayProf       = True
453         WayProf `allowedWith` WayUnreg          = True
454         WayProf `allowedWith` WayNDP            = True
455         _ `allowedWith` _                       = False
456
457
458 findBuildTag :: IO [String]  -- new options
459 findBuildTag = do
460   way_names <- readIORef v_Ways
461   let ws = sort way_names
462   if not (allowed_combination ws)
463       then throwDyn (CmdLineError $
464                     "combination not supported: "  ++
465                     foldr1 (\a b -> a ++ '/':b) 
466                     (map (wayName . lkupWay) ws))
467       else let ways    = map lkupWay ws
468                tag     = mkBuildTag (filter (not.wayRTSOnly) ways)
469                rts_tag = mkBuildTag ways
470                flags   = map wayOpts ways
471            in do
472            writeIORef v_Build_tag tag
473            writeIORef v_RTS_Build_tag rts_tag
474            return (concat flags)
475
476 mkBuildTag :: [Way] -> String
477 mkBuildTag ways = concat (intersperse "_" (map wayTag ways))
478
479 lkupWay w = 
480    case lookup w way_details of
481         Nothing -> error "findBuildTag"
482         Just details -> details
483
484 data Way = Way {
485   wayTag     :: String,
486   wayRTSOnly :: Bool,
487   wayName    :: String,
488   wayOpts    :: [String]
489   }
490
491 way_details :: [ (WayName, Way) ]
492 way_details =
493   [ (WayThreaded, Way "thr" True "Threaded" [
494 #if defined(freebsd_TARGET_OS)
495           "-optc-pthread"
496         , "-optl-pthread"
497 #endif
498         ] ),
499
500     (WayDebug, Way "debug" True "Debug" [] ),
501
502     (WayProf, Way  "p" False "Profiling"
503         [ "-fscc-profiling"
504         , "-DPROFILING"
505         , "-optc-DPROFILING" ]),
506
507     (WayTicky, Way  "t" False "Ticky-ticky Profiling"  
508         [ "-fticky-ticky"
509         , "-DTICKY_TICKY"
510         , "-optc-DTICKY_TICKY" ]),
511
512     (WayUnreg, Way  "u" False "Unregisterised" 
513         unregFlags ),
514
515     -- optl's below to tell linker where to find the PVM library -- HWL
516     (WayPar, Way  "mp" False "Parallel" 
517         [ "-fparallel"
518         , "-D__PARALLEL_HASKELL__"
519         , "-optc-DPAR"
520         , "-package concurrent"
521         , "-optc-w"
522         , "-optl-L${PVM_ROOT}/lib/${PVM_ARCH}"
523         , "-optl-lpvm3"
524         , "-optl-lgpvm3" ]),
525
526     -- at the moment we only change the RTS and could share compiler and libs!
527     (WayPar, Way  "mt" False "Parallel ticky profiling" 
528         [ "-fparallel"
529         , "-D__PARALLEL_HASKELL__"
530         , "-optc-DPAR"
531         , "-optc-DPAR_TICKY"
532         , "-package concurrent"
533         , "-optc-w"
534         , "-optl-L${PVM_ROOT}/lib/${PVM_ARCH}"
535         , "-optl-lpvm3"
536         , "-optl-lgpvm3" ]),
537
538     (WayPar, Way  "md" False "Distributed" 
539         [ "-fparallel"
540         , "-D__PARALLEL_HASKELL__"
541         , "-D__DISTRIBUTED_HASKELL__"
542         , "-optc-DPAR"
543         , "-optc-DDIST"
544         , "-package concurrent"
545         , "-optc-w"
546         , "-optl-L${PVM_ROOT}/lib/${PVM_ARCH}"
547         , "-optl-lpvm3"
548         , "-optl-lgpvm3" ]),
549
550     (WayGran, Way  "mg" False "GranSim"
551         [ "-fgransim"
552         , "-D__GRANSIM__"
553         , "-optc-DGRAN"
554         , "-package concurrent" ]),
555
556     (WayNDP, Way  "ndp" False "Nested data parallelism"
557         [ "-fparr"
558         , "-fflatten"]),
559
560     (WayUser_a,  Way  "a"  False "User way 'a'"  ["$WAY_a_REAL_OPTS"]), 
561     (WayUser_b,  Way  "b"  False "User way 'b'"  ["$WAY_b_REAL_OPTS"]), 
562     (WayUser_c,  Way  "c"  False "User way 'c'"  ["$WAY_c_REAL_OPTS"]), 
563     (WayUser_d,  Way  "d"  False "User way 'd'"  ["$WAY_d_REAL_OPTS"]), 
564     (WayUser_e,  Way  "e"  False "User way 'e'"  ["$WAY_e_REAL_OPTS"]), 
565     (WayUser_f,  Way  "f"  False "User way 'f'"  ["$WAY_f_REAL_OPTS"]), 
566     (WayUser_g,  Way  "g"  False "User way 'g'"  ["$WAY_g_REAL_OPTS"]), 
567     (WayUser_h,  Way  "h"  False "User way 'h'"  ["$WAY_h_REAL_OPTS"]), 
568     (WayUser_i,  Way  "i"  False "User way 'i'"  ["$WAY_i_REAL_OPTS"]), 
569     (WayUser_j,  Way  "j"  False "User way 'j'"  ["$WAY_j_REAL_OPTS"]), 
570     (WayUser_k,  Way  "k"  False "User way 'k'"  ["$WAY_k_REAL_OPTS"]), 
571     (WayUser_l,  Way  "l"  False "User way 'l'"  ["$WAY_l_REAL_OPTS"]), 
572     (WayUser_m,  Way  "m"  False "User way 'm'"  ["$WAY_m_REAL_OPTS"]), 
573     (WayUser_n,  Way  "n"  False "User way 'n'"  ["$WAY_n_REAL_OPTS"]), 
574     (WayUser_o,  Way  "o"  False "User way 'o'"  ["$WAY_o_REAL_OPTS"]), 
575     (WayUser_A,  Way  "A"  False "User way 'A'"  ["$WAY_A_REAL_OPTS"]), 
576     (WayUser_B,  Way  "B"  False "User way 'B'"  ["$WAY_B_REAL_OPTS"]) 
577   ]
578
579 unregFlags = 
580    [ "-optc-DNO_REGS"
581    , "-optc-DUSE_MINIINTERPRETER"
582    , "-fno-asm-mangling"
583    , "-funregisterised"
584    , "-fvia-C" ]