Dynamic linking
Dynamic linking implies the use of dynamic link libraries (on Windows) or shared objects (on Linux) and is the same as with other DLLs/SOs. The mechanism of dynamic linking will be briefly covered in the next chapter.
We will, however, build dynamic link libraries and shared objects right now in order to be able to proceed further. Compile the crypto.asm file, setting the ACTIVE_TARGET compile-time variable to TARGET_W32_DLL in order to generate a 32-bit DLL for Windows, and then to TARGET_W64_DLL in order to generate a 64-bit DLL. Keep in mind the fact that changing ACTIVE_TARGET does not affect the name of the output, so we would have to rename the result of each compilation accordingly.
While on Windows you have to simply ...
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