Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why browsers are bloated [Part 2]

Name: Anonymous 2016-04-23 22:49

Cudder is all talk and no action!

Name: Anonymous 2020-05-03 2:09

>>396

I'm not even a Rust programmer but this was hardly any work at all to set up. You basically add the libc crate and implement a
panic_handler
since you're not using the Rust runtime. The binary is 6128 bytes

$ cargo build --release && strip target/release/print
Finished release [optimized] target(s) in 0.06s
$ ll target/release/print
-rwxrwxrwx 2 anus anus 6128 May 2 21:53 target/release/print*


Meanwhile, let's see how C is doing. Oh, too bad

$ gcc -Os hello.c -o hello && strip hello
$ ll ./hello
-rwxrwxrwx 1 anus anus 6312 May 2 22:02 ./hello*



Something is seriously retarded when gcc's Hello World optimized for size is bigger than the whole distribution of MS-DOS 0.02, etc etc.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List