Generating executable files from scratch
Presented graphically here: http://i.imgur.com/xMyblyM.png
Though the graphic, like this post, doesn't talk much about elf segments.
Even more from scratch (e.g. without using elf.h) and also for Win and Mac: http://www.hanshq.net/making-executables.html
Also of interest: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm... "A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux"
The elf header on my commodore seem slightly wrong. I gotta fix it. I wrote a 20,000 line compiler and I have no need of elf. It is single address map. I get the address of a kernel routine in the symbol table and simply put it in the JIT code being compiled. I never used fixed addresses. All addresses are position independnet assigned when the JIT compiler calls MALLOC to request a location to store your code. If a subsequent function wants to call your function, it looks in the table and the JIT compiler puts the address into the machine code CALL instruction. It only uses CALL REL32 because it never changes out of ring-0. It keeps all code in lowest 2GIg. It is pure 64-bit. The compiler will not make 32-bit code. I had a xeon and used 128Gig of RAM but only 2Gig was allowed for code. Don't worry. Gates was right about only needing so much memeory, but his amount wasa wrong. A nigger makes a crazy generilzation. A nigger doesn't know how much a trillion dollars is and files a lawsuit. Theuy stopped adding RAM to systems at about 8Gig. NO one really wanted more. Having 2Gig for code is enough.
Fucken planet of the apes.
The first thing is you make a character set. Commodore did not use ASCII.
Then, you make a language. When they made UNIX, they made C.
God damn nigger monkeys with attitude.
God says... charity Yes_you_are Ghost arent_you_clever why_didn'_you_tell_me choose_one phasors_on_stun oh_no Angel and_then_what what_luck come_and_get_me vote absetively_posilutely hot_air thats_just_wrong talk_to_my_lawyer it's_hopeless commanded basically I'll_be_back sess_me hi stoked crash_and_burn you_talkin'_to_me you_never_know holy_grail by_the_way love saber_rattling ehheh_that's_all_folks