dmd -betterC

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 20 22:35:42 PDT 2017


Sebastien Alaiwan wrote:

> On Wednesday, 21 June 2017 at 03:57:46 UTC, ketmar wrote:
>> "bloatsome"? i don't think so. those generated messages is small 
>> (usually 20-30 bytes), and nothing comparing to druntime/phobos size.
>
> Yeah, but what if you're already working without runtime and phobos?

it doesn't matter, `assert()` is impemented as `throw` anyway. and in 
"betterc" mode compiler can just omit generation of such messages, 
resorting to what it does now.

> (some embedded systems only have 32Kb program memory, and yes these are 
> up-to-date ones)

asserts on embedded systems? O_O code built without -release for embedded 
systems? O_O


More information about the Digitalmars-d mailing list