Shared libraries can be generated using the '--app:lib' argument when invoking the compiler. If multiple Nim dll's are going to be loaded in the same program, then they need to link to the nimrtl libraryso that the garbage collection mechanism behaves properly.