GNU Autoconf, Automake, and Libtool
by Gary V. Vaughan, Ben Elliston, Tom Tromey, Ian Lance Taylor
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access