Rust Versus C Binary Size
Rust C main.rs fn main() { println!("Hello, World!"); } TERMINAL — 3 INPUT VALUE WEBOUTPUT $ cat main.rs $ ls -la $ wc -c main $ ./main Hello, World! main.c #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello, World!\n"); } TERMINAL — 3 INPUT VALUE WEBOUTPUT $ cat main.c $ gcc main.c $ ls -la $ wc -c main $ ./main Hello, World! 3.52 MiB 15.57 KiB
A side-by-side comparison shows nearly identical Hello World programs written in Rust and C. The joke is that the Rust executable is dramatically larger than the C executable, poking fun at Rust’s compilation overhead and binary size for a trivial program. EN: A side-by-side comparison shows nearly identical Hello World programs written in Rust and C. The joke is that the Rust executable is dramatically larger than the C executable, poking fun at Rust’s compilation overhead and binary size for a trivial program.
Rust code screenshot / скриншот кода на RustC code screenshot / скриншот кода на Cterminal window / окно терминалаsource code / исходный кодtext editor / текстовый редакторcomputer screen / экран компьютераHello World program / программа Hello Worldfile listing / список файловlarge binary size / большой размер бинарного файлаsmall binary size / маленький размер бинарного файла
- @gentoomemes / 15906 2025-02-09
- Type
- image
- Size
- 800×581 · 90.9 KiB
- Mood
- sarcastic
- Language
- en
- Added