当前位置:网站首页>GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13
GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13
2022-07-31 01:37:00 【Wanli Yangtze River Snow】
Organization | Peng Huizhong Editor-in-Chief | Tu Min
Produced | CSDN (ID: CSDNnews)
The GCC (GNU Compiler Collection, GCC) Steering Committee has approved the GCC Rust front-end, which is powered by the GNU compiler suite for the Rust programming language.The GCC Steering Committee has announced that the Rust frontend "GCC Rust" is suitable for inclusion in the GCC mainline codebase, and may be merged into the mainline before next year's GCC 13 release.

GCC Rust thrives
==================
GCC Front-End For Rust (also known as GCC Rust) is a complete alternative implementation of the Rust language on top of GCC with the goal of being upstream of the GNU toolchain.The official Rust compiler implementation is based on LLVM, and GCC Rust is a front-end project, and unlike LLVM, the compiler will gain full access to all GCC internal mid-range optimization passes.Projects that are tightly integrated with GCC can often benefit from GCC plugins.Of course, GCC will also bring support for more target architectures, and the GCC-based Rust compiler will make GCC Rust easier to start on new platforms.
At the time of this project's inception, Rust was at version 0.9, and now that the Rust language is stable enough, the time has come to create an alternative compiler.Since November 2020, developer Philip Herron has been working on GCC Rust full-time, and with the joint efforts of him and the entire community, GCC Rust is gradually entering the mainline.
The project is still in its early stages and the goal is to be the first to implement compiling the official Rust test suite, and the community hopes to have at least "test" level support for the Rust programming language in GCC 13, which will be available around April next year as aStable version released.
Rust's design principles are "safe, concurrent, and practical", and can achieve memory safety while ensuring the same performance as native compiled languages.Such features have also prompted more and more companies to use the Rust programming language to support Rust projects.Rust for Linux is also expected to be implemented in Linux 5.20.

The voice of the developers
The announcement sparked a lively discussion on Haker News by more than 400 developers, with many celebrating the news with joy.
One developer commented: "This is awesome! GCC's support for Rust opens up more platforms to Rust, achieves more goals, and makes it easier to interact with the wide variety of general-purpose embedded tools built around CGG.Chain integration opportunities. And GCC is free software, which is important to those who care."

Photo source Haker News
However, some developers have doubts about this: "What is the benefit of having multiple compilers for a programming language? Is there a situation where a Rust program compiled with GCC does something that LLVM cannot?Will it lead to the fragmentation of the Rust ecosystem?"

Photo source Haker News
Such concerns have also been answered by a number of developers.One developer stated: "1. GCC has more backends than LLVM. 2. Competition is generally good. 3. This is expected to cause inconsistencies between GCC and rustc (the compiler for the Rust programming language); because Rust doesn't really have a specification. That would force both parties to discuss and resolve these issues."

Photo source Haker News
Another developer also responded: "One benefit is that it forces the language to articulate the standard, rather than having the implementation define the feature set. Standards tend to bring stability and durability to the language, while also making it easier to write newcompiler and make it more portable."

Photo source Haker News
In general, the growth of GCC Rust carries a lot of expectations. By April next year, we may be able to meet it in GCC 13. So fellow developers, what do you think of GCC Rust?
Reference link: https://gcc.gnu.org/pipermail/gcc/2022-July/239057.html
"New Programmer 001-004" has been fully listed, welcome to scan the 2D belowcode or click to enter Subscribe now to enjoy e-books and beautiful paper books
Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- 【微信小程序】一文带你了解数据绑定、事件绑定以及事件传参、数据同步
- Dispatch Center xxl-Job
- MySQL的安装教程(嗷嗷详细,包教包会~)
- 使用docker安装mysql
- Multiplication, DFS order
- 九州云入选“可信云最新评估体系及2022年通过评估企业名单”
- Sping.事务的传播特性
- Jiuzhou Cloud was selected into the "Trusted Cloud's Latest Evaluation System and the List of Enterprises Passing the Evaluation in 2022"
- keep-alive缓存组件
- The sword refers to offer17---print the n digits from 1 to the largest
猜你喜欢
随机推荐
coldfusion8后台计划任务拿shell
手把手教你配置Jenkins自动化邮件通知
VS warning LNK4099:未找到 PDB 的解决方案
Google官方控件ShapeableImageView使用
pc端判断当前使用浏览器类型
Distributed. Idempotency
Kyushu cloud as cloud computing standardization excellent member unit
Ticmp - 更快的让应用从 MySQL 迁移到 TiDB
1782. Count the number of point pairs Double pointer
解析云原生消息流系统 Apache Pulsar 能力及场景
【952. Calculate the maximum component size according to the common factor】
想要写出好的测试用例,先要学会测试设计
SQLserver查询最近三个月的数据,语句该怎么写sqlserver
太阳能板最大面积 od js
Shell变量与赋值、变量运算、特殊变量
link与@import的区别
使用docker安装mysql
TiDB 操作实践 -- 备份与恢复
MySQL (6)
Sping.事务的传播特性









