diff --git a/Mixed-language-link-time-optimization.md b/Mixed-language-link-time-optimization.md index 314beb6..06b4c7a 100644 --- a/Mixed-language-link-time-optimization.md +++ b/Mixed-language-link-time-optimization.md @@ -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. \ No newline at end of file + 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`. \ No newline at end of file