Re: Varying code size, why?
Jim Wilson <[email protected]> 18 Jun 2003 10:59:38 -0700
| Newsgroups | gmane.linux.redhat.ia64.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2003-06-18 at 05:59, Emeric Maschino wrote: > Several compiles of the same C++ source code give me slightly different > executable code size. Is this the EPIC magic? The compiler should be deterministic. That is, it should always give the same outputs for the same inputs. If this isn't happening, then there is probably a bug somewhere. This is true for GCC, and likely to be true for the Intel compiler also. There are some features that can result in different output in non-obvious ways. For instance, if you are using profile-directed feedback, then your profile info could have changed without you noticing, and this could cause different optimizations and hence different code size in the output. Jim