... | @@ -46,7 +46,7 @@ Here is a block diagram of its top-level structure: |
... | @@ -46,7 +46,7 @@ Here is a block diagram of its top-level structure: |
|
[](/trac/ghc/attachment/wiki/Commentary/Compiler/ghc-top.png)
|
|
[](/trac/ghc/attachment/wiki/Commentary/Compiler/ghc-top.png)
|
|
|
|
|
|
|
|
|
|
The part called **HscMain** deals with compiling a single module. On top of this is built the **compilation manager** (in blue) that manages the compilation of multiple modules. It exports an interface called the **GHC API**. On top of this API are four small front ends:
|
|
The part called [HscMain](commentary/compiler/hsc-main) deals with compiling a single module. On top of this is built the **compilation manager** (in blue) that manages the compilation of multiple modules. It exports an interface called the **GHC API**. On top of this API are four small front ends:
|
|
|
|
|
|
- GHCi, the interactive environment, is implemented in [compiler/ghci/InteractiveUI.hs](/trac/ghc/browser/ghc/compiler/ghci/InteractiveUI.hs) and sits squarely on top of the GHC
|
|
- GHCi, the interactive environment, is implemented in [compiler/ghci/InteractiveUI.hs](/trac/ghc/browser/ghc/compiler/ghci/InteractiveUI.hs) and sits squarely on top of the GHC
|
|
API.
|
|
API.
|
... | | ... | |