Additional considerations

You should consider the following performance and alignment issues when compiling and linking your application.


Performance

Linking with shared libraries results in a smaller executable and takes less time than linking with static libraries. However, executables linked with shared libraries may have a slower start-up time than those linked with static libraries. Also, unlike static libraries, the shared libraries must be available at runtime.

The type of library that provides the best performance depends on the individual requirements of your site.


Data alignment on a 64-bit architecture

When building a 64-bit application, your data structure must be aligned on an eight-byte boundary, that is, to memory addresses that are multiples of eight bytes. Similarly, the data structure of 32-bit applications must be aligned on a four-byte boundary.