<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi All,<br><br>Attached is the code for generating C/C++ code from a GiNaC expression that pulls out subexpressions and declares them up front so that they only have to be evaluated once. The .hh file has documentation and a simple usage example.<br><br>I hope this is useful.<br><br>I used it to reduce 50MB of code to under 300K and improved the running time dramatically.<br><br>-Doug<br><br>Support NPR 20 seconds at a time. www.twentysecondsatatime.org<br><br></td></tr></table><br>