Live data from Hacker News

Manually Creating an ELF Executable

robinhoksbergen.com

1–10 of 27 posts

Re: Manually Creating an ELF Executable

#3
Very similar to several posts that have come up before: https://news.ycombinator.com/item?id=5508981 and https://news.ycombinator.com/item?id=3158862 as well as things mentioned therein: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm... which is a 45 byte executable (it doesn't say Hello World), and http://asm.sourceforge.net/intro/hello.html.

All the same, very cool, this is a great experiment for anyone to work on :)

Re: Manually Creating an ELF Executable

#4
post #3

Very similar to several posts that have come up before: https://news.ycombinator.com/item?id=5508981 and https://news.ycombinator.com/item?id=3158862 as well as things mentioned therein: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm... which is a 45 byte executable (it doesn't say Hello World), and http://asm.sourceforge.net/intro/hello.html . All the same, very cool, this is a great experiment for any…

> http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm.... which is a 45 byte executable (it doesn't say Hello World)

True, I needed 62 bytes to get the greeting in there.

Re: Manually Creating an ELF Executable

#5
post #4
post #3

Very similar to several posts that have come up before: https://news.ycombinator.com/item?id=5508981 and https://news.ycombinator.com/item?id=3158862 as well as things mentioned therein: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm... which is a 45 byte executable (it doesn't say Hello World), and http://asm.sourceforge.net/intro/hello.html . All the same, very cool, this is a great experiment for any…

> http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm... . which is a 45 byte executable (it doesn't say Hello World) True, I needed 62 bytes to get the greeting in there.

Still teensy :)

Re: Manually Creating an ELF Executable

#7
post #2

Awesome. My wife and kids asked me if you can write computer programs using just 1s and 0s and I told them that assembly was the lowest you could use, apparently mistakenly. Gonna have to try this out!

Assembly opcodes are 0's && 1's.

Sure but that's not nearly as magical as writing literal numbers in a file and running it.

Re: Manually Creating an ELF Executable

#8
post #2

Awesome. My wife and kids asked me if you can write computer programs using just 1s and 0s and I told them that assembly was the lowest you could use, apparently mistakenly. Gonna have to try this out!

Of course you can, though on a modern system it's no longer possible to get code into the system by toggling electrical switches, which was the way computers were bootstrapped way back in the day.

But hand assembly isn't so far away from our experience. Woz famously wrote the original Apple ][ ROM by hand, including the BASIC interpreter (itself written in a "SWEET16" bytecode for which he hand-assembled the interpreter). I don't know what the tooling looked like for that; surely he wasn't hand-toggling this thing in every time. Presumably the monitor and casette interface were written first...

Re: Manually Creating an ELF Executable

#9
post #8
post #2

Awesome. My wife and kids asked me if you can write computer programs using just 1s and 0s and I told them that assembly was the lowest you could use, apparently mistakenly. Gonna have to try this out!

Of course you can, though on a modern system it's no longer possible to get code into the system by toggling electrical switches, which was the way computers were bootstrapped way back in the day. But hand assembly isn't so far away from our experience. Woz famously wrote the original Apple ][ ROM by hand, including the BASIC interpreter (itself written in a "SWEET16" bytecode for which he hand-assembled the interpre…

[deleted]
Post reply on HN