As discussed in #2, this PR documents different approaches to generate simulation models as shared libraries, to be dynamically loaded and executed from foreign languages/applications.
@RocketRoss, I guess this will make it easier for new users (as you in ghdl/ghdl#1184) to understand how to generate shared libraries to execute simulations multiple times from foreign languages. Would you mind reviewing this PR?
NOTE: I did not remove -Wl,-Wl,-u,ghdl_main from ghdl -e -shared yet. We can either keep this PR open until GHDL is updated, or we can merge this before and update the example/docs later. The failure of shared/shghdl is expected until the docker image is updated.
Fix #2
As discussed in #2, this PR documents different approaches to generate simulation models as shared libraries, to be dynamically loaded and executed from foreign languages/applications.
@RocketRoss, I guess this will make it easier for new users (as you in ghdl/ghdl#1184) to understand how to generate shared libraries to execute simulations multiple times from foreign languages. Would you mind reviewing this PR?
NOTE: I did not removeThe failure of shared/shghdl is expected until the docker image is updated.-Wl,-Wl,-u,ghdl_main
fromghdl -e -shared
yet. We can either keep this PR open until GHDL is updated, or we can merge this before and update the example/docs later.