TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

LLVM 10.0

197 pointsby zmodemabout 5 years ago

5 comments

AndyKelleyabout 5 years ago
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 未加载
marmadukeabout 5 years ago
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 未加载
floatbothabout 5 years ago
&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>
chaz6about 5 years ago
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.
genpfaultabout 5 years ago
Can you build clang with clang yet on Windows without Visual Studio installed?
评论 #22679718 未加载
评论 #22679128 未加载