Why does my executable size not change?

richardcavell@mail.com richardcavell@mail.com
Sat Mar 26 09:14:00 GMT 2011


Hi, everyone.

I'm compiling using gcc -std=c99 -pedantic -Wall -Wextra, no 
optimization, on Ubuntu 10.10 32-bit.  Currently my executable size is 
54956 bytes.

Occasionally I change a small bit of code, and recompile.  My 
executable file size doesn't change, even when the code definitely does 
something different.  However, I would like to know what changes are 
made.  Occasionally I could code thing one way or another, and if I 
could shave off a few bytes doing it the other way, I'd like to do it.

Why does the executable size not change?  Is there some type of 
rounding-up going on?

Richard




More information about the Gcc-help mailing list