Manually Creating an ELF Executable
robinhoksbergen.com
Manually Creating an ELF Executable
1–10 of 27 posts
Re: Manually Creating an ELF Executable
#2Re: Manually Creating an ELF Executable
#3All the same, very cool, this is a great experiment for anyone to work on :)
Re: Manually Creating an ELF Executable
#4Very 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…
True, I needed 62 bytes to get the greeting in there.
Re: Manually Creating an ELF Executable
#5Very 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
#6Awesome. 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!
Re: Manually Creating an ELF Executable
#7Awesome. 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.
Re: Manually Creating an ELF Executable
#8Awesome. 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!
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
#9Awesome. 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…