News for hackers. Stuff that matters.
Re:Things That Turbo Pascal is Smaller Than by hippich on Sunday October 30, 2011 @10:12PM (#3176091)
Could someone explain why touch program is 47 Kbytes size? Just checked my Ubuntu machine to confirm this.
Re:Things That Turbo Pascal is Smaller Than by mkopinsky on Sunday October 30, 2011 @10:50PM (#3176172)
Probably because it's statically linked with some standard libraries. If you write a hello world app in C++ and compile/link with all the defaults, you'll see similar results.
Re:Things That Turbo Pascal is Smaller Than by beza1e1 on Monday October 31, 2011 @08:12AM (#3177124)
It is not. It even dynamically links to libpthread ...
Re:Things That Turbo Pascal is Smaller Than by tedunangst on Sunday October 30, 2011 @10:55PM (#3176182)
You should use OpenBSD, then it's only 10k. As for why, objdump -s gives some hints. Lots of the file is really just zeros (you can see this with hexdump too), and the various sections of the file are padded for alignment.
Re:Things That Turbo Pascal is Smaller Than by pdw on Monday October 31, 2011 @04:50PM (#3178976)
I think you can blame the GNU `--date` option. It supports many, many possible input formats (http://www.gnu.org/s/coreutils/manual/html_node/Date-input-f...) and the implementation has to be quite complex.