eholk / harlan

A language for GPU computing.
Other
1.19k stars 82 forks source link

Runtime requires harlan_main #118

Closed eholk closed 10 years ago

eholk commented 10 years ago

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.