By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 833 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

lost object files- recompiling give different binary size!!

P: n/a
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?

Jun 23 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Pep
linux_bp wrote:
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?


Are you sure the source has not been modified in any way, or the libraries
you link against have not changed or that you have specified different
optimisation levels?

Jun 23 '06 #2

P: n/a
Pep wrote:
linux_bp wrote:

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?

Are you sure the source has not been modified in any way, or the libraries
you link against have not changed or that you have specified different
optimisation levels?

Or any of the tools have been updated.

--
Ian Collins.
Jun 23 '06 #3

P: n/a
"linux_bp" <ri**********@gmail.com> wrote in message
news:11*********************@m73g2000cwd.googlegro ups.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.
Jun 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.