GCC approves inclusion of Rust language support

The GCC Steering Committee approved the inclusion of the gccrs (GCC Rust) implementation of the Rust compiler into the GCC mainstream. After integrating the frontend, the standard GCC toolkit can be used to compile Rust programs without the need to install the rustc compiler built using LLVM developments.

The developers of gccrs are encouraged to start working with the GCC change review and release teams to finalize and approve patches in terms of meeting the technical requirements for code being added to GCC. Assuming development of gccrs continues as planned and no unforeseen issues are identified, the Rust language front-end will be integrated into the GCC 13 release scheduled for May next year. The Rust implementation in GCC 13 will be in beta status, not yet enabled by default.

The Rust language focuses on safe memory management and provides the means to achieve high job parallelism. Safe memory management, which excludes errors such as accessing a memory area after it is freed, dereferencing null pointers, and overflowing buffer boundaries, is achieved in Rust at compile time through reference checking, tracking object ownership, accounting for the lifetime of objects (scopes) and evaluating the correctness of memory access during code execution. Rust also provides protection against integer overflows, requires mandatory initialization of variable values ​​before use, handles errors better in the standard library, applies the concept of immutable references and variables by default, offers strong static typing to minimize logical errors.

Source: opennet.ru

Add a comment