From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Any Suggestion How To Accomplish A Debug Macro? Date: Fri, 2 Jan 2015 22:13:32 +0100 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: F0bZVcKBguFJO8b9hCfgbw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:24318 Date: 2015-01-02T22:13:32+01:00 List-Id: 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