Conversation

🤔 an I wonder: would the LLVM libc be written in C++? Also, what would you call it? llibc? Logical next step is to have an LLVM kernel. What would you call that kernel? It would certainly be low-level, and would handle virtual machines (as well as virtual memory).
Quote Tweet
Is it time for an LLVM libc? The Google LLVM team are collecting feedback lists.llvm.org/pipermail/llvm
11
31
Replying to
There could be so many more interesting LLVM projects to solve problems with existing platforms! - LLDE - the LLVM Desktop Environment - ALLSA - the Advanced LLVM Sound Architecture
2
20
If you want to see an actually genuinely insane custom Android linker: twitter.com/DanielMicay/st It's got everything: intentional segfaults for lazy loading, libraries loaded as dirty pages, monkey patching libc, measuring signal latency to determine behavior at runtime, etc.
Quote Tweet
Replying to @DanielMicay @johnregehr and 3 others
Sources for this monstrosity are at hg.mozilla.org/mozilla-centra. Here's their function for monkey patching libc: hg.mozilla.org/mozilla-centra. Below that, you can see where they catch segfaults and trigger the library loading. They also measure signal latency to see if it's worth doing.
1