Shared Objects

Hi. Does anyone know by how much a text size of an executable(on ibm) would grow if you link one shared object(library)? Is it a constant number or it depends on a .so that is linked?

it depends on the size of the DSO, which you are linking

It's more complex than that.

The first guy to map shared memory objects incurs a lot of memory overhead in creating new shared memory. The next guy to map the same shared objects incurs way less overhead.

Overall, the use of shared memory objects is encouraged because it uses memory much more efficiently.

Thank you.