The runtime includes a main function that calls harlan_main. This makes it sort of useless to write Harlan programs as shared libraries. We should split the startup code into a separate library that is only linked in when building an executable.
This also means we'll need to make sure that the necessary startup code happens when the library is loaded too.
The runtime includes a
main
function that callsharlan_main
. This makes it sort of useless to write Harlan programs as shared libraries. We should split the startup code into a separate library that is only linked in when building an executable.This also means we'll need to make sure that the necessary startup code happens when the library is loaded too.