You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the rust_codegen_gcc project! This guide will help you get started as a contributor. The project aims to provide a GCC codegen backend for rustc, allowing Rust compilation on platforms unsupported by LLVM and potentially improving runtime performance through GCC's optimizations.
3
+
Welcome to the `rust_codegen_gcc` project! This guide will help you get started as a contributor. The project aims to provide a GCC codegen backend for rustc, allowing Rust compilation on platforms unsupported by LLVM and potentially improving runtime performance through GCC's optimizations.
4
4
5
5
## Getting Started
6
6
7
7
### Setting Up Your Development Environment
8
8
9
-
1. Install the required dependencies:
10
-
- rustup (follow instructions on the [official website](https://rustup.rs))
For detailed setup instructions including dependencies, build steps, and initial testing, please refer to our [README](https://github.com/rust-lang/rustc_codegen_gcc/blob/master/Readme.md). The README contains the most up-to-date information on:
Copy file name to clipboardexpand all lines: Readme.md
+28-15
Original file line number
Diff line number
Diff line change
@@ -12,22 +12,35 @@ This is a GCC codegen for rustc, which means it can be loaded by the existing ru
12
12
The primary goal of this project is to be able to compile Rust code on platforms unsupported by LLVM.
13
13
A secondary goal is to check if using the gcc backend will provide any run-time speed improvement for the programs compiled using rustc.
14
14
15
-
### Dependencies
16
-
17
-
**rustup:** Follow the instructions on the official [website](https://www.rust-lang.org/tools/install)
18
-
19
-
**DejaGnu:** Consider to install DejaGnu which is necessary for running the libgccjit test suite. [website](https://www.gnu.org/software/dejagnu/#downloading)
20
-
21
-
15
+
## Getting Started
22
16
23
-
## Building
17
+
Note: **This requires a patched libgccjit in order to work.
18
+
You need to use my [fork of gcc](https://github.com/antoyo/gcc) which already includes these patches.**
24
19
25
-
**This requires a patched libgccjit in order to work.
26
-
You need to use my [fork of gcc](https://github.com/rust-lang/gcc) which already includes these patches.**
27
-
28
-
```bash
29
-
$ cp config.example.toml config.toml
30
-
```
20
+
### Dependencies
21
+
- rustup: follow instructions on the [official website](https://rustup.rs)
22
+
- consider to install DejaGnu which is necessary for running the libgccjit test suite. [website](https://www.gnu.org/software/dejagnu/#downloading)
# Run full test suite (expect ~100 failing UI tests)
42
+
./y.sh test --release
43
+
```
31
44
32
45
If don't need to test GCC patches you wrote in our GCC fork, then the default configuration should
33
46
be all you need. You can update the `rustc_codegen_gcc` without worrying about GCC.
@@ -40,7 +53,7 @@ to do a few more things.
40
53
To build it (most of these instructions come from [here](https://gcc.gnu.org/onlinedocs/jit/internals/index.html), so don't hesitate to take a look there if you encounter an issue):
0 commit comments