LLVM-libc FreeBSD Port

Schrodinger ZHU Yifan <[email protected]>
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <4ULJ2ArcglpmfhbucS6osCDR2dwUOoiosLmyViz5t_kekzk4t-mHLNq1AChQ0ySWeyuh9mhmJS8F9O98e0yX-dEwFITaOjzQ2GmHXWXJ4JM=@zhuyi.fan>
Hi all,

I am one of the maintainers of LLVM libc, mainly responsible for its threading support, and I currently daily drive FreeBSD.

LLVM libc is a from-scratch implementation of the C standard library developed as part of the LLVM project. It is designed to be modular, so individual components can be used independently; multiplatform, targeting Linux, GPUs, bare-metal embedded systems, UEFI, macOS, Windows, and more; and written in modern C++ with a focus on correctness, performance, and safety. See also https://libc.llvm.org/ .

We recently had a casual discussion on our Discord about bringing up FreeBSD support. This would be an interesting step toward broadening LLVM libc’s perspective from Linux-only to more general *nix portability, which should also help improve its overall structure. The initial bring-up was fairly straightforward (the PR is a bit outdated but can be fixed without much effort): https://github.com/llvm/llvm-project/pull/124459. This already delivers LLVM libc’s correctly rounded math and mathvec support to FreeBSD.

However, moving toward completeness will require more work. We would also need CI pipelines and stable maintainers before FreeBSD could be added to the list of supported platforms.

Personally, I think bringing a modular libc design with modern features that continue to evolve rapidly would also be a plus for the FreeBSD community, especially given FreeBSD’s close relationship with LLVM. If anyone is interested, please feel free to ping me at i [at] zhuyi [dot] fan.

By the way, the Discord link on your website appears to be broken.

Best,
Yifan




Schrodinger ZHU Yifan, Ph.D. Student
Computer Science Department, University of Rochester

Personal Email: [email protected]
Work Email: [email protected]
Github: SchrodingerZhu
signature.asc (application/pgp-signature, 343 B)
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wrsEARYKAG0FgmoA3bIJEJksGLlrEhVfRRQAAAAAABwAIHNhbHRAbm90YXRp
b25zLm9wZW5wZ3Bqcy5vcmdXAFQlukh0KK0g7xvgMH7AnXAA6NtdnRoBJeq0
FosOVRYhBKmKPq4WbsyRies6jJksGLlrEhVfAABHbgD7BOVuWwdBQlElIe69
deZVstaiUq+nlJC6/iQItOi5lDkBAJgJie1IODqerQA0jSb7RFKshQjiNpGY
7K+nzRUs23EL
=hyAg
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.