comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Any Suggestion How To Accomplish A Debug Macro?
Date: Fri, 2 Jan 2015 22:13:32 +0100
Date: 2015-01-02T22:13:32+01:00	[thread overview]
Message-ID: <fh7u81n706kr.131btl9yj1iz8.dlg@40tude.net> (raw)
In-Reply-To: m86vi9$m0d$1@dont-email.me

On Fri, 02 Jan 2015 21:37:47 +0100, J-P. Rosen wrote:

> Le 30/12/2014 23:11, Randy Brukardt a écrit :
>> But I don't think there is much reason (outside of the memory-constrained 
>> embedded system, or the system that has to be formally proved or validated) 
>> to ever removing the tracing. It's important to be able to turn it off, of 
>> course, but the runtime cost of it being off is so minimal (primarily 
>> caching/paging effects) that removing it isn't worth the effort. (And if you 
>> plan to keep it around forever, you'll spend more time making the traces 
>> make sense in the future -- which typically pays off very quickly.)
> 
> I fully agree with that.

This is all true, conditional compilation is rubbish, IMO.

However, it would be interesting to consider how tracing could be better
supported. I mean options:

1. To have zero-cost turned off tracing, e.g. some code modification
techniques or maybe something else. After all we have zero-cost exceptions,
why not tracing.

2. Ideas for the compilation units structure modification which would allow
to have tracing code physically separated from the functional code.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2015-01-02 21:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30  3:12 Any Suggestion How To Accomplish A Debug Macro? Hubert
2014-12-30 11:14 ` Simon Wright
2014-12-30 11:45   ` Hubert
2014-12-30 20:07   ` Brad Moore
2014-12-30 22:11     ` Randy Brukardt
2015-01-01 12:28       ` Georg Bauhaus
2015-01-02 20:37       ` J-P. Rosen
2015-01-02 21:13         ` Dmitry A. Kazakov [this message]
2015-01-02 21:52           ` Randy Brukardt
2015-01-02 22:17             ` Niklas Holsti
2014-12-31  0:15     ` Luke A. Guest
2014-12-30 16:24 ` sbelmont700
2014-12-30 18:21   ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox