Created
April 20, 2021 02:04
-
-
Save mickeyouyou/1aaf07f6aa39bcff3eea0cf0122dff44 to your computer and use it in GitHub Desktop.
“用力过猛”的现代操作系统
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// craete rs do nothing | |
fn main() { | |
// do nothing | |
} |
zongbao@lixiang:~/lixiang/os
> size donothing
text data bss dec hex filename
266383 10256 544 277183 43abf donothing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then build this code with
rustc donothing.rs
and run
./donothing
Obviously , nothing printed. But strace is