D with minimal runtime
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Jun 16 01:16:27 UTC 2020
On 6/15/20 4:50 PM, Walter Bright wrote:
> On 6/15/2020 3:16 AM, IGotD- wrote:
>> As we have discussed before, the best way for this in my opinion is to
>> have an abstract interface in druntime for the OS functions. This way
>> we could stub those functions that the programmer doesn't need.
>
> If you include the line:
>
> extern (C) void printf() { }
>
> somewhere in your code, printf() will *not* get linked in.
>
> An extra interface layer is not necessary.
Word. Any work on reducing druntime needs to be based on a good
understanding of how linking works.
More information about the Digitalmars-d
mailing list