Mihran Hovsepyan
Mihran Hovsepyan

Reputation: 11088

Compilation and Linking in C++

I am looking for a detailed article about compilation and linking in c++. I know a lot about them, but sure there are some subtle points I missed.

Upvotes: 2

Views: 308

Answers (3)

Fabio Fracassi
Fabio Fracassi

Reputation: 3890

I liked this series by Ian Lance Taylor (Author of the gold linker). It explains linkers and their history in great detail.

Upvotes: 3

javier-sanz
javier-sanz

Reputation: 2524

There is a a paper called how tow write shared libraries by Ulrich Drepper. It is not the linker itself but it explains very deeply how symbols loading and resolution works, thing that is related. It is only Linux oriented by the way.

Upvotes: 1

mbx
mbx

Reputation: 6526

Linkers and Loaders is a classic for that topic. The theoretical background for Compilers is given in Dragon Book. If you really want build a Compiler Let's Build a Compiler is worth reading. There where some courses on Compilers recorded on video mentioned in this Stackoverflow Question: Are there any compiler lectures available via video?

A very short overview for C++ is given here. I guess, most of that you'll already know.

If you're really into it, how about reading the sources from different versions of gcc and llvm/clang? The Sun/Oracle Linker and Libraries Guide offers a comprehensive work specific for the Sun/Solaris platform.

Upvotes: 6

Related Questions