3 ms·
How is this possible? I can't even produce "Hello World" program as short as that, do you not use ELF format?
by gnulinux 8y ago
How is this possible? I can't even produce "Hello World" program as short as that, do you not use ELF format?
- jaak 8y agoLOL this reminds of old flame wars on Usenet about the smallest possible "Hello World!". Someone would always eventually post "echo Hello World!" and the endless arguments would ensue about whether or not that was actually a program.
- rwmj 8y agoWhy echo it? $ cat /tmp/hello hello\ world $ /tmp/hello /tmp/hello: line 1: hello world: command not found It prints hello world :-)
- vardump 8y agoGreat idea! I improved the "program": $ cat >hello Hello\ World\! $ chmod +x hello $ ./hello ./hello: line 1: Hello World!: command not found V0.2 changelog: * fix: adheres to Hello World! standard now
- userbinator 8y agoIn realmode DOS COM format (flat binary) a "Hello world" is under two dozen bytes, the bulk of it being the string itself.