Go to the first, previous, next, last section, table of contents.

Forcing options to a particular phase.

The preceding sections describe driver options that are mostly applicable to one particular phase. You may also force a specific option `<option>' to be passed to a particular phase `<phase-code>' by feeding the driver the option `-opt<phase-code><option>'. The codes to indicate the phases are the same as in the previous section.

So, for example, to force an `-Ewurble' option to the assembler, you would tell the driver `-opta-Ewurble' (the dash before the E is required).

Besides getting options to the Haskell compiler with `-optC<blah>', you can get options through to its runtime system with `-optCrts<blah>'.

So, for example: when I want to use my normal driver but with my profiled compiler binary, I use this script:

#! /bin/sh
exec /local/grasp_tmp3/simonpj/ghc-BUILDS/working-alpha/ghc/driver/ghc \
     -pgmC/local/grasp_tmp3/simonpj/ghc-BUILDS/working-hsc-prof/hsc \
     -optCrts-i0.5 \
     -optCrts-PT \
     "$@"


Go to the first, previous, next, last section, table of contents.