Re:The art of creating very tiny programs for the 80x86 fami...
by gnulinux on Saturday September 15, 2018 @01:47AM
(#17993164)
How is this possible? I can't even produce "Hello World" program as short as that, do you not use ELF format?
Re:The art of creating very tiny programs for the 80x86 fami...
by jaak on Saturday September 15, 2018 @01:58AM
(#17993189)
LOL 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.
Re:The art of creating very tiny programs for the 80x86 fami...
by rwmj on Saturday September 15, 2018 @02:27AM
(#17993261)
Why echo it?
$ cat /tmp/hello
hello\ world
$ /tmp/hello
/tmp/hello: line 1: hello world: command not found
It prints hello world :-)
Re:The art of creating very tiny programs for the 80x86 fami...
by vardump on Saturday September 15, 2018 @09:28AM
(#17994215)
Great 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
Re:The art of creating very tiny programs for the 80x86 fami...
by userbinator on Saturday September 15, 2018 @02:11AM
(#17993227)
In realmode DOS COM format (flat binary) a "Hello world" is under two dozen bytes, the bulk of it being the string itself.
Me and a couple of friends were able to implement the game of Nibbles (Snake on old Nokia phones) in 70 bytes. Someone else managed to accomplish it in 48.
http://www.hugi.scene.org/compo/compoold.htm#compo1