<div dir="ltr">There was a discussion on this mailing list with this title back in 2018. Recently an Astrobe user requested this feature so we revisited the discussion. We are now in the process of final testing of an Astrobe implementation based on <span style="color:rgb(0,0,0)"><font face="arial, sans-serif" style="">Jörg Straube's suggestion:</font></span><div><br></div><div><a href="https://lists.inf.ethz.ch/pipermail/oberon/2018/012137.html">https://lists.inf.ethz.ch/pipermail/oberon/2018/012137.html</a></div><div><br></div><div>Elimination of unused code in this way is very useful when developing software for embedded systems. The development boards we support have as little as 64 KBytes available for code. Diagnostic code can be included when doing unit testing on separate modules but needs to be eliminated to enable all the modules to be linked together in an executable without exceeding the code space available.</div><div><br></div><div>Having to edit source code e.g. to change the value of a test CONST from TRUE to FALSE in multiple modules can be tedious and error prone. A useful technique which allows the Astrobe programmer to switch between the test modules and the production application <i>without</i> editing any source code module is described in the <i>Conditional Compilation</i> topic of the Astobe Forum:</div><div><br></div><div><a href="https://www.astrobe.com/forum/viewforum.php?f=4">https://www.astrobe.com/forum/viewforum.php?f=4</a></div><div>--</div><div>Regards,</div><div>Chris Burrows</div><div>CFB Software</div><div><a href="https://www.astrobe.com">https://www.astrobe.com</a></div><div><br></div><div><br></div><div><br></div></div>