"linux_bp" <ri**********@g mail.com> wrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
I had deleted my object files accidently. Now to analyse a core i need
object files. If I recompile the same source code with imake on
solaris, i m getting the binary of different size. Is it because of
different compilation date and time?
If everything is exactly the same, you should get the same file size,
although there may actually be trivial differences in the binary (the
compiler may put the date/time in the executable).
If you are getting a different executable size, something has changed.
Maybe a compile switch has changed (different optimization), maybe a header
or source file has changed, or something. Unfortunately, I can't tell you
what.
That is why a lot of shops will put together everything used to make a build
and archive it so they can get the same executable to go back to a version.