You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow up to #36 (comment).
Specifically, it would be nice to test out memcpy, memset, memcmp, and strlen from llvm-libc.
There's a few issues though. We'd maybe want to build it as part of epoch2, but:
llvmlibc has some build failures in 14.0.1. I need to cherry-pick a hacked up version of commit 122da690b39a ("[libc] Fix build when __FE_DENORM is defined").
llvmlibc build seems to depend on musl-dev to build in the env (wtf)
llvmlibc build seems to depend on kernel headers, which we don't build for epoch2 but do for epoch3. I think we might need to thus build llvmlibc BEFORE building clang in epoch3...
Alternatively, clang can assemble some glibc implementations of the above. 😈
Activity
nickdesaulniers commentedon Jul 11, 2022
Here's a profile of llvmlibc used in stage3 to build a kernel:
compare vs musl. Or:
musl:
llvm-libc:
(memcmp falls out of the top 20)
so llvm-libc is a win here (maybe not for strlen though :( )
Create and link against libllvmlibc-sparse