mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Updated Mixed language link time optimization (markdown)
@@ -61,4 +61,6 @@ allocation as a dead store:
|
||||
Dump of assembler code for function main:
|
||||
0x00000000004005b0 <+0>: xor %eax,%eax
|
||||
0x00000000004005b2 <+2>: retq
|
||||
End of assembler dump.
|
||||
End of assembler dump.
|
||||
|
||||
To do this with the Rust runtime on, define a regular `main` function in Rust and pass the necessary link flags to `clang`. The necessary switches can be obtained with `rustc -Z print-link-args foo.rs`.
|
||||
Reference in New Issue
Block a user