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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rust front-end merged in GCC trunk

158 点作者 pratk超过 2 年前

6 条评论

skitter超过 2 年前
I have asked this question before, but why write an entirely new frontend, which is an enormous task if you want to reach a similar quality to rustc? rustc_codegen_gcc¹ adds gcc as a backend to rustc alongside llvm, miri and (wip) cranelift. As a result, it always works with the newest version of rust and is already nearly complete after less work.<p>¹<a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;tree&#x2F;master&#x2F;compiler&#x2F;rustc_codegen_gcc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;tree&#x2F;master&#x2F;compiler&#x2F;rustc...</a>
评论 #33983207 未加载
评论 #33983200 未加载
评论 #33982961 未加载
评论 #33982972 未加载
评论 #33982893 未加载
评论 #33984277 未加载
hardware2win超过 2 年前
I hope there aint gonna be ecosystem fragmentation<p>When there are a fews compilers with significant market share then developers are those who lose, lose that handy dev. experience of solid and consistent ecosystem<p>I hope it will be used only where necessary
评论 #33982835 未加载
评论 #33982211 未加载
评论 #33982943 未加载
评论 #33982819 未加载
评论 #33983958 未加载
rwmj超过 2 年前
What are the practical implications of this? Could cargo call GCC? Or would it be like gcj and allow compiled rust libraries &amp; binaries to be distributed? (at least in theory, gcj didn&#x27;t work out well)
评论 #33982149 未加载
评论 #33982106 未加载
评论 #33982152 未加载
评论 #33981914 未加载
c0l0超过 2 年前
Probably a dumb question, but I&#x27;d really like to know if this somehow affects&#x2F;improves Rust&#x27;s support for dynamic linking in any way (i.e., when comiling Rust code with the GCC-based toolchain, instead of with rustc)?
评论 #34049087 未加载
sp1rit超过 2 年前
Does this mean I can now finally generate object files from .rs sources and link them myself?<p>That is one of the things that rustc is severely lacking.
评论 #33982354 未加载
评论 #33989153 未加载
评论 #33982586 未加载
rurban超过 2 年前
Their base62 implementation really looks unreviewed. A static 64 byte array for 62 bytes...