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

Why GCC executable are so bloated?

Name: Anonymous 2010-07-20 8:24

7kb of code for hello world?

Name: Anonymous 2010-07-21 2:29

$ cat hello.c
#include <stdio.h>
#include <stdlib.h>

char *environ, *__progname;

int _start(int argc, char *argv[argc])
{ exit(puts("Hello, World!")); }
$ gcc $CFLAGS -Os -s -nostdlib -lc -o hello hello.c
$ du -AhB1 hello
1,6K    hello

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