What happens when you launch a D application ?
Mike via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 23 02:32:13 PDT 2015
> FYI, I didn't realize this (but just figured it out), C main
> *used* to be in druntime, but it's now generated by the
> compiler. See here:
>
> https://github.com/D-Programming-Language/dmd/blob/master/src/mars.c#L236
>
True. But it is compiler-dependent. GDC actually still defines
"C main" in the runtime:
https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/__entrypoint.di#L60
Mike
More information about the Digitalmars-d-learn
mailing list