dmd -betterC

Sebastien Alaiwan via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 20 23:06:02 PDT 2017


On Wednesday, 21 June 2017 at 05:35:42 UTC, ketmar wrote:
> asserts on embedded systems? O_O code built without -release 
> for embedded systems? O_O

embedded system != production system.

You still need to debug the code, and at some point, you have to 
load it on a real microcontroller ; this is where some of your 
assumptions about how the chip works might turn out to be false.

This is where it gets tricky. Because now you need to fit the 
memory requirements, and at the same time, you want some level of 
diagnostic.

And by the way, you might want to keep boundschecking code, even 
in production. In some situations, it's preferable to crash/hang 
than outputing garbage.


More information about the Digitalmars-d mailing list