Add information about SpiderMonkey and rustc plans.

This commit is contained in:
Jakob Stoklund Olesen
2018-01-25 14:07:50 -08:00
parent d56ce9e8bf
commit ef2640d8a4
5 changed files with 75 additions and 22 deletions

16
rustc.rst Normal file
View File

@@ -0,0 +1,16 @@
=================
Cretonne in Rustc
=================
The Rust compiler currently uses LLVM as its optimizer and code generator for both debug and
release builds. The Cretonne project does not intend to compete with LLVM when it comes to
optimizing release builds, but for debug builds where compilation speed is paramount, it makes
sense to use Cretonne instead of LLVM.
- Cretonne is designed to take advantage of multi-core CPUs, making parallel code generation quite
easy. This is harder with LLVM which was designed before multi-core CPUs where mainstream.
- Cretonne is designed with compilation speed in mind. It makes engineering tradeoffs that favor
compilation speed over advanced optimizations.
See `the discussion on the Rust internals forum
<https://internals.rust-lang.org/t/possible-alternative-compiler-backend-cretonne>`_.