status of shared libs
Jacob Carlborg
doob at me.com
Mon Apr 8 04:21:06 PDT 2013
On 2013-04-08 11:51, Maxim Fomin wrote:
> C main function need to be renamed or D main function should be supplied
> (then a program would start from C code, not D, but this is not a problem)
>
> By the way, druntime links to _Dmain, but does not necessarily forwards
> to it.
The C main function defined in druntime forward to the D main function.
The C main function calls "_d_run_main" and passes in a pointer to the D
main function. "_d_run_main" then calls the d main function. Indirectly
the C main forwards to D main.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list