Linking D code into existing C programs
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 27 02:12:03 PDT 2016
On 2016-09-27 10:50, Claude wrote:
> We've got to consider that when it is statically linked, and also
> dynamically as well.
>
> Also, if it's statically linked, will the linker just use parts of
> druntime that are actually used by the D libtrary?
>
> For instance, if the D library does not use exceptions, ideally it
> should not link any related code in druntime (it's important, especially
> in embedded software).
In will include module and type info. It might include some runtime
functions for exceptions unless all functions are marked with "nothrow".
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list