Chapter 2 Reuse Code at Link Time (C Only)
Resourceful Code Reuse — by Dmitry Zinoviev (13 / 20)
👈 Modularizing Code (the Python Way) | TOC | Compiling Object Files 👉
Separating a project into several compilation units is the first small step toward code reuse. But compile-time code reuse has some limitations. Fully exposing shared source code to other programmers may be undesirable for corporate and legal reasons. Additionally, you don’t want to recompile all units for every project build, especially if the project is large. (For example, in 2015, Linux consisted of 40,000 files.) You can improve build performance and code security by precompiling modules into object files and later arranging them into libraries.
👈 Modularizing Code (the Python Way) | TOC | Compiling Object Files 👉
Resourceful Code Reuse by Dmitry Zinoviev can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.