File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ we'll talk about that later.
87
87
- We then begin what is vaguely called _ code generation_ or _ codegen_ .
88
88
- The [ code generation stage (codegen)] [ codegen ] is when higher level
89
89
representations of source are turned into an executable binary. ` rustc `
90
- uses LLVM for code generation. The first step is the MIR is then
91
- converted to LLVM Intermediate Representation (LLVM IR). This is where
92
- the MIR is actually monomorphized, according to the list we created in
93
- the previous step.
90
+ uses LLVM for code generation. The first step is to convert the MIR
91
+ to LLVM Intermediate Representation (LLVM IR). This is where the MIR
92
+ is actually monomorphized, according to the list we created in the
93
+ previous step.
94
94
- The LLVM IR is passed to LLVM, which does a lot more optimizations on it.
95
95
It then emits machine code. It is basically assembly code with additional
96
96
low-level types and annotations added. (e.g. an ELF object or wasm).
You can’t perform that action at this time.
0 commit comments