Tsoding streamed about D

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Mar 28 00:03:58 UTC 2025


On 28/03/2025 8:17 AM, Meta wrote:
> On Thursday, 27 March 2025 at 14:06:43 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> On 28/03/2025 2:58 AM, Mike Shah wrote:
>>> betterC if I recall/inferred was somewhat a marketing term for the 
>>> flag. '-no-runtime' is essentially what it does and indeed probably a 
>>> better name.
>>
>> To be more exact, it is a marketing term for a collection of switches, 
>> only one of which is turning off linking against druntime.
> 
> What are the other switches? I thought the only thing -betterC does is 
> forego linking druntime.

Here is what it does for dmd: 
https://github.com/dlang/dmd/blob/21cfefc9d1657207bd2ee26cfbc490de3b5a4e6b/compiler/src/dmd/main.d#L1108

While these may appear to be the consequence of not having the druntime 
linked in, you may for whatever reason choose to turn these off and 
still have druntime, or link against a different runtime.

It may be appear simple, but its actually a big bundle of codegen and 
linker related stuff combined together for one feature that individually 
can be split off like gdc does.



More information about the Digitalmars-d mailing list