For example, the smallest hello world I got in
1) standard ANSI C : 20 kB (with stormC stdio)
2) ANSIC / dos.libnrary 500 odd bytes
3) asm / dos.library about 100 bytes
But then again, it was written with BCPL in mind
Heh, this reminds me of another project, the shortest possible hello world in assembler.
You asked for it, and here it is: the smallest possible Hello World program as amiga executable (feel free to prove me wrong, though):
Main:
bsr.b .main
dc.b 'Hello, World!',10
.main:
move.l $AC(a2),a4
move.l (sp)+,d1
moveq #14,d2
moveq #12,d0
jmp (a5)
That is:
- 14 bytes of code
- 14 bytes of data
Total 64 bytes as compiled to a executable. You can shorten the string to "Hello World\n", and thus have just 12 bytes of data, but the executable size remains as 64 due to padding.
And surprise surprise, the code (ab)uses some BCPL vector (globvec). :-)