3
I want a program that outputs "hello world" on console on my x86_64 based Linux computer. Yes, a complete program, not something silly that needs an interpreter or a compiler to work.
You may:
- use all glibc functionality
- submit a static executable
- submit a dynamic executable with dependencies if you outline them
- compile an ELF file
- dig into the ELF format and remove all unneeded stuff
- be creative and work around the ELF format
Describe here how you create and execute the program.
The shortest program wins.
10
Similar: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
– Peter Taylor – 2014-01-02T07:00:41.6631@PeterTaylor The page I immediately thought of when reading this. Thanks for digging it up before me. – J B – 2014-01-02T12:27:19.423
1@breadbox is a high-rep user on our site. I'm sure they'll nail this one. ;-) – Chris Jester-Young – 2014-01-02T12:27:55.773
1Too bad you specified the platform :) – marinus – 2014-01-02T15:05:28.720
1@marinus why is this a bad thing? – John Dvorak – 2014-01-02T16:13:12.963
marinus may use any platform he likes to go below the 45 bytes from http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
– Thorsten Staerk – 2014-01-04T18:01:09.047why not write your own platform? Thingy should fit into a bootsector :) 0x001d bytes: http://www.staerk.de/thorsten/How_to_program_your_own_OS plus two bytes boot sector signature
– Thorsten Staerk – 2014-01-04T22:00:54.370and sorry for calling this an OS, back in 2008 I was a bit ignorant – Thorsten Staerk – 2014-01-04T22:02:01.203