16.1. Dynamic Modules

To dynamically load some code into your executable, that code must be compiled in some special but architecture-dependent fashion. Depending on the compiler you use and the platform you are compiling for, you must observe different conventions in the code for the module, and for the particular combination of compiler options you need to select if the resulting objects are to be suitable for use in a dynamic module. The rest of this chapter concentrates on the conventions used when compiling dynamic modules with GCC on GNU/Linux. Although these are peculiar to this particular combination of compiler and host architecture, they are typical of the sorts of conventions you would need to observe on other architectures or with ...

Get GNU Autoconf, Automake, and Libtool 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.