D as a betterC a game changer ?

Mike Franklin slavo5150 at yahoo.com
Mon Dec 25 10:27:29 UTC 2017


On Monday, 25 December 2017 at 09:25:46 UTC, Dan Partelly wrote:

>
> 2. Expceptions can be implemented in such a way that the 
> run-time cost, when used ,is minimal.

I did some testing a few years ago with g++ and the ARM Cortex-M 
platform.  I found that, compared with checking return values, 
using exceptions improved performance of the no-throw path, but 
paid a heavy cost for the throw path.  I think that is a useful 
tradeoff if exceptions are used judiciously.

Mike


More information about the Digitalmars-d mailing list