Manually creating an ELF executable
negrebskoh.net
Manually creating an ELF executable
1–10 of 38 posts
Re: Manually creating an ELF executable
#2This is so fascinating I'm starting to get palpitations. I've always wanted to know how to program in machine code. I've looked through the web countless times in search of something like this, and haven't ever found it, until now.
Thanks for the great insight. This kind of stuff makes C/C++ look like stuff for total newbies. Getting this close to the hardware really is quite mind-boggling.
Re: Manually creating an ELF executable
#3Re: Manually creating an ELF executable
#4So essentially, this is writing an application in machine code? This is so fascinating I'm starting to get palpitations. I've always wanted to know how to program in machine code. I've looked through the web countless times in search of something like this, and haven't ever found it, until now. Thanks for the great insight. This kind of stuff makes C/C++ look like stuff for total newbies. Getting this close to the ha…
http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm...
Manually picking out hex opcodes is maybe a bit over the top. A nice assembler like nasm should be "low level enough" while still providing a lot more convenience and flexibility.
Re: Manually creating an ELF executable
#5I believe that one of the reasons the Arduino has the appeal it does is because you can know everything there is to know about the program it is running. That is a lot of fun for a technologist.
It would be fun to have this blog posting written from within a debugger. I always found it intriguing to 'debug a program into existence' as it were.
Re: Manually creating an ELF executable
#6We used to do it with toggle switches, back in the day (long before ELF binaries existed, though).
Re: Manually creating an ELF executable
#7Re: Manually creating an ELF executable
#8That is the first lesson you have in assembly language: program in assembly language, then in C because it spares you the time (and the mistakes involved in the process) to do such a thing.
Thousands of men year efforts and wisdom ruined in a post, showing how people have too much time on their hands, and so few imaginations (well he could have written something interesting on how to display p0rn pictures in ASCII art at least).
Re: Manually creating an ELF executable
#9I am voiceless: why would the f*ck would someone loose such that much time on a trivial, yet annoying task? That is the first lesson you have in assembly language: program in assembly language, then in C because it spares you the time (and the mistakes involved in the process) to do such a thing. Thousands of men year efforts and wisdom ruined in a post, showing how people have too much time on their hands, and so fe…
You won't ever do this in the Real World (TM), but it's a fantastic way to get into things.
Re: Manually creating an ELF executable
#10We used to do it with toggle switches, back in the day (long before ELF binaries existed, though).
Well, only the boot loader. You could use paper tape after you had that keyed in :)