c++ - What does an object file contain? -


During the various stages of compilation in C or C ++, I know that an object file is generated (i.e., any_name.o file)

Can anyone help me? Does the contents of the object files depend mainly on the compiler, which we use on Unix?

Object files by default or some from the list below:

  • Symbol name
  • Integrated code
  • Constant data, e.g.
  • Import - Which symbols are compiled by the code reference (fixed by the linker)
  • Export - Which symbol provides the object object files.

A group of linker object files turns into executable, by combining all the imports and exports, and by modifying the compiled code so that the correct function is found.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -