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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

LLVM 10.0

197 点作者 zmodem大约 5 年前

5 条评论

AndyKelley大约 5 年前
If you want to play around with some of the improved code generation features of Clang&#x2F;LLVM 10 for various architectures (MIPS, ARM, RISC-V, etc), but don&#x27;t want to take the time to set up a full cross compilation environment, you could use the master branch tarballs[1] of Zig, which already are based on LLVM&#x2F;Clang 10.<p>I <i>just</i> published a blog post[2] about this. You can use `zig cc` in the place of `clang`, and it&#x27;ll unlock cross compilation.<p>[1]: <a href="https:&#x2F;&#x2F;ziglang.org&#x2F;download&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ziglang.org&#x2F;download&#x2F;</a><p>[2]: <a href="https:&#x2F;&#x2F;andrewkelley.me&#x2F;post&#x2F;zig-cc-powerful-drop-in-replacement-gcc-clang.html" rel="nofollow">https:&#x2F;&#x2F;andrewkelley.me&#x2F;post&#x2F;zig-cc-powerful-drop-in-replace...</a>
评论 #22679065 未加载
评论 #22684858 未加载
评论 #22681218 未加载
marmaduke大约 5 年前
I feel like LLVM 3.4 and GCC 4.8 were around for ages and now they increment major versions every time I reinstall Linux.<p>Is it just me? Why do compiler version numbers increase so faster now?<p>(I read these release notes, it seems quite nice but is it a major version?)
评论 #22678943 未加载
评论 #22678976 未加载
评论 #22679939 未加载
评论 #22679289 未加载
评论 #22679412 未加载
floatboth大约 5 年前
&gt; Clang now defaults to .init_array on Linux. It used to use .ctors if the found GCC installation is older than 4.7.0<p>Oh man, I&#x27;ve seen that check somewhere..<p>namely, I&#x27;ve had to port the init-array-or-ctors decision code from clang to LDC, because LDC was just using LLVM defaults, and LLVM defaulted to ctors on FreeBSD&#x2F;AArch64, which doesn&#x27;t support ctors, but that was only noticeable with the LLD linker, because bfd and gold were quietly (!) converting ctors to init_array (!!) as a performance optimization (!!!)<p>ref: <a href="https:&#x2F;&#x2F;github.com&#x2F;ldc-developers&#x2F;druntime&#x2F;pull&#x2F;146#issuecomment-433229535" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ldc-developers&#x2F;druntime&#x2F;pull&#x2F;146#issuecom...</a>
chaz6大约 5 年前
Is it feasible to deliver a compiler as a standalone executable (e.g. * .appimage on linux or * .exe on windows)?<p>Edit: couldn&#x27;t find how to use a raw * next to text without it changing the formatting in HN.
genpfault大约 5 年前
Can you build clang with clang yet on Windows without Visual Studio installed?
评论 #22679718 未加载
评论 #22679128 未加载