GHC |
|
|
|
The Glasgow Haskell Compiler (GHC) developed at the University of Glasgow, is the most popular Haskell compiler used. It consists of two components: an open source compiler(GHC) and an interactive environment for Haskell (GHCi).
GHC can be used with GHCi by loading modules directly into an interactive session. This compiles the modules and uses them in the same way as interpreted code.
|
|
|
|
Compile Speed
GHC is not one of fastest Haskell compilers around due it's flexibility, although it's speed is more than adaquate.
Complied code is generated to run as fast as possible without optimising the code.
Alternatively, GHC can be set to optimise the code, with a shorter run time but taking longer compilation.
|
|
|
|
Key Features
GHC has several key features that make it popular, these include:
- Support for the entire Haskell 98 language, plus a wide variety of extensions
- Runs on different platforms, including Windows and most UNIX's
- Has extensive optimisation capabilities
- Supports generating native code on some platforms, in addition to compiling via an intermediate C compiler
- Has a profiling system which allows investigation into time and space requirements for the evaluation of an expression
- Fast pre-compiled library code and fast compile turnaround for the parts of a program being actively developed
|
|
|
|