P
P
Petya Anisimov2014-04-15 20:11:42
Microsoft
Petya Anisimov, 2014-04-15 20:11:42

What is an object module?

Please write the definition for the object module in a simpler language. I read about him on Wikipedia, but I did not understand anything.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tsarevfs, 2014-04-15
@tsarevfs

Building with or with ++ code takes place in 2 stages.
1 - compilation. On it, each cpp-shnik is converted into an object file. Since each file is compiled independently, we cannot yet calculate the address of functions from another object.
In their place, we leave holes and write down the symbols that we expect / have in special tablets .
Then there is linking. All object files are written one after another, and now it is possible to fill in the addresses of all functions.
Static libraries behave much like ordinary object files. With dynamic, everything is somewhat more complicated.

V
Valentine, 2014-04-15
@vvpoloskin

The compiler collects the binary after assembly, this is the object module. After that, it links with the necessary libraries (static or dynamic). After a complete build step, the result is the desired file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question