3 ms·
Yes, I've looked hard at using LLVM for the backend of a project, so I'm familiar with the above. However LLVM does at least one thing that assembly doesn't, w
by hga 17y ago
Yes, I've looked hard at using LLVM for the backend of a project, so I'm familiar with the above.
However LLVM does at least one thing that assembly doesn't, which is implement a stack. It also obviously handles CPU registers (and opaquely). To do accurate garbage collection (http://llvm.org/docs/GarbageCollection.html http://llvm.org/docs/GarbageCollection.html; note, the whole site LLVM site is not loading for me right now) you have to work with it to find roots in the stack(s) and registers. And the state of the implementation of that is what I was talking about.
Does this GHC backend use a conservative collector such as the Boehm collector? As I recall VMKit does.