Hi everyone,
trying to learn something new, I just installed a hex editor (ghex) and was playing around with it. I took a peek at the binary file of a small C++ program I had written some time ago, and was rather surprised at how many zeros it contains. There's a big chunk full of zeros right in the middle of the file. So I'm wondering why the compiler inserts them? Isn't that inefficient?
If you want to replicate, you'll find the source code at www.launchpad.net/comp. I compiled it with g++, no extra options passed (as seen in the install.sh file).
Bookmarks