dememax: (скука)
dememax ([personal profile] dememax) wrote 2010-02-01 08:48 pm (UTC)

Re: Поискал в своей инсталляции GHC... никакого C--.

Признаться, у меня никогда не было и нет инсталляции GHC.
Как и указал в посте, я посмотрел вскользь на их исходники.
Но, конечно, не только исходниками я пользовался, мне ещё и Википедия помогала.
Позволю себе процитировать соответствующую статью английской википедии:
GHC is itself written in Haskell (in a technique known as bootstrapping), but the runtime system for Haskell, an essential part of the compiler, is written in C and C--.
....
The back end of the compiler transforms Core code into an internal representation of C--, via an intermediate language STG (short for "Spineless Tagless G-machine"). The C-- code can then take one of two routes: either it is printed directly as C code, or it is converted into native machine code (the traditional "code generation" phase).

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting