CHAPTER 8

image

Designing Dynamic Libraries: Advanced Topics

The purpose of this chapter is to discuss the details of the dynamic linking process. A crucial factor in this process is the memory mapping concept. Basically, it allows a dynamic library that is already loaded in the memory map of a running process to be mapped into the memory map of another process running concurrently.

The important rule of dynamic linking is that different processes do share the code segment of the dynamic library, but do not share the data segments. Each of the processes loading the dynamic library is expected to provide its own copy of the data on which the dynamic ...

Get Advanced C and C++ Compiling now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.