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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

FreeBSD 10 to use Clang, GCC will be deprecated

165 点作者 lysol大约 13 年前

7 条评论

mrich大约 13 年前
I have been working on getting a quite complex C++ code base (3M+ LOC) with heavy template use to compile on clang. Along the way, I have found many violations of the C++ standard that GCC silently accepts, several obscure GCC features that clang does not support, and up to now filed three clang bug reports.<p>The project compiles now, but the resulting executable is still not passing basic regression tests :)<p>I think our codebase has been depending for too long on just one compiler, and clang C++ support isn't perfect yet. (FreeBSD has mostly C code which is very stable). I will keep pushing to get it all working :)
评论 #3966892 未加载
评论 #3967199 未加载
TwoBit大约 13 年前
We have been using clang on Apple, Linus, and FreeBSD. It's a lot nicer to work with and compiles faster than GCC, including 4.7. As people point out, the generated code is on average a little slower.
评论 #3966511 未加载
评论 #3967230 未加载
Turing_Machine大约 13 年前
I haven't been following C much in recent years, though I knew that Apple had switched.<p>Someone want to give (or link to) a brief rundown of the advantages/disadvantages?
评论 #3965880 未加载
评论 #3965899 未加载
评论 #3966594 未加载
评论 #3966172 未加载
maxharris大约 13 年前
I'm excited about this change. I was working on a C++ project last summer that had a lot of templates. Clang was a <i>lot</i> faster, and a lot easier to use.
mp3geek大约 13 年前
Would be interesting to see benchmarks with GCC vs Clang in FreeBSD
soc88大约 13 年前
Aren't they pretty much doing anything these days to make it easier for Apple to “steal” their code, considering that most consumers of BSD code are Apple users?
评论 #3966355 未加载
评论 #3966605 未加载
评论 #3966223 未加载
评论 #3967602 未加载
评论 #3966942 未加载
Sicp大约 13 年前
WAT.
评论 #3965863 未加载