Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Self-hosting llvm isn't all that hard.

But you might possibly have found that one weird corner case where it doesn't make sense to depend on a mighty, highly-sophisticated, industrial-strength, extremely well tested and supported, nicely mature, compiler tooling framework.

But that's a pretty big exception to most language implementers who get all of that and more for super-cheap compared to implementing it themselves.



Self hosted typically includes building the compiler in the language it compiles. E.g. my Ruby compiler is self hosted except for needing an assembler and linker (and I might get rid of that need too) and a minimal C library.

If you're writing a C++ compiler, self-hosting LLVM might not be a massive additional complexity. For any other language it's not an option if self hosting is one of your goals.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: