Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can be the possible reasons for the object code of an unchanged C++ file to change on recompilation?

It's not really my question. It's a dormant question I found on quora. One answer was that some of the header files might have changed but the author of the questions claims they did not. I would love to hear what people here have to say :)

like image 812
vikram360 Avatar asked Nov 29 '25 02:11

vikram360


1 Answers

  • Changed header files
  • Different compiler
  • Different command line options
  • Timestamp in object code
  • Nondeterministic code generator or optimizer
  • Profile-driven optimization with changed profile
  • Nondeterminism induced by changes in OS provided services
like image 127
Ira Baxter Avatar answered Nov 30 '25 16:11

Ira Baxter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!