TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Libc in LLVM

23 点作者 akalin将近 6 年前

3 条评论

writepub将近 6 年前
A cross-platform libc included with LLVM is much needed! Languages like Go, Rust, .. already abstract away arch and OS details, while one of the oldest high-level languages, C is still battling this fundamental requirement.<p>There&#x27;s much argument to be made to use the OS specific libc, but that is <i>only</i> for OS specific tasks (ioctl, specific syscalls, etc). If we can make a cross platform libc that implements and abstracts aways the 200 most commonly used syscallc on Linux, I believe 95% of user programs will just work across all OS-es
g82918将近 6 年前
At some point it would be nice if some large organization would move us past libc. Printf and kin are a nightmare. Really we need a more rigorously vetted set of functions. Something typesafe would be nice and having a c++ version would be great, imagine a memcpy that works with std::array natively.
georgelyon将近 6 年前
Another interesting tack would be to include trivial functions like strlen, memcpy and friends with LLVM (excluding, at least initially, things like sockets). This would help a ton with WebAssembly as we wait for all browsers to support WASI!