Updated Mixed language link time optimization (markdown)

Daniel Micay
2013-10-06 07:23:14 -07:00
parent d88dc48957
commit c6c814e917
+3 -1
@@ -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`.