Michael (misc147)
Michael (misc147)
hexdump hello-include | perl -pe 's/^\S*//' 457f 464c 0102 0001 0000 0000 0000 0000 0002 003e 0001 0000 8090 0804 0000 0000 0040 0000 0000 0000 0000 0000 0000 0000...
finally. Compiled with other options, objdump did its job. objdump -D hello-include hello-include: file format elf64-x86-64 Disassembly of section .text: 0000000008048078 : 8048078: b8 01 00 00 00 mov $0x1,%eax...
Now, I'm really wondering why the heck ld places the entry point behind the main function. That's .. hm. ( main starts in the listing at ..oh gosh. anyways. its...
an _end function behind main would not only be faster and save a few bytes, it would be saver. (No crash, when someone does to much fiddling within main. Just...
And again, while thinking about it: I'm going to try a jmp to main at the end of _start. Hopefully, the compiler will optimize right.
Nice reading: https://en.wikibooks.org/wiki/X86_Disassembly
That's typical. The linked wikibook - most things are quite basical. The things, I'd need to know - aren't explained.
Anyways, nice sentence there: Computer science professors tell their students to avoid jumps and goto instructions, to avoid the proverbial "spaghetti code." **Unfortunately, assembly only has jump instructions to control...
..without any problem we could write object oriented programs in Assembly. or functional. It's just hard to write lowlevel from a highfunctional language, the other way. Cause of restrictions. I...
And the biggest perl project I wrote did have around 50.000 loc. Nicely, there didn't be a real performance bash. Just the startup took a few seconds, finally the scripting...