<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Joseph<div><br></div><div>On PowerPC machines there is a limitation of 32 kB for the combined size of code and global variables, and similar for local variables.</div><div>On Intel machines this limit is much larger, i.e. it is at 8 MB. (at least since pro Fit 6.1.5)</div><div>These limits are given by the way we built our compiler, and they can't be increased without major changes.</div><div><br></div><div><div>Your code + global variables' size is somewhat larger than 38 kB, i.e. it exceeds the 32 kB limit on PowerPC machines.</div><div><br class="webkit-block-placeholder"></div><div>If you need to compile and run your function on a PowerPC machine, then we see the following options to get around the limitation:</div><div>a) You could reduce the size of the global variables, if your function allows to move part of the variables into local functions or procedures.</div><div>b) You could write the values that you would store in these variables into a data window and read them back from there when needed.</div><div>c) You find an algorithm that needs not all variables to be available in the function at the same time, if it is e.g. possible to do a file by file processing.</div><div><br class="webkit-block-placeholder"></div><div>We hope these ideas give you some help.</div><div><br class="webkit-block-placeholder"></div><div>Best regards,</div><div><br class="webkit-block-placeholder"></div><div>Your Quantum Soft Team</div><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br><div><div>On 10.01.2008, at 20:04, Joseph Walrath wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">The following code, when compiled, lead to this message: "The total size of global variables exceeds its limit."<div>It's just a bunch of arrays with 50 elements each. &nbsp;Any suggestions?</div><div><br> </div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="color:#0000cc">program</span> ParseSymmetryTables;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; min-height: 12px; "><span style="color:rgb(0, 0, 204)">const</span><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>NumFiles = 50;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; min-height: 12px; "><span style="color:rgb(0, 0, 204)">var</span><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>i, FileCount: <span style="color:#0000cc">integer</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15 : <span style="color:#0000cc">array</span>[1..NumFiles] <span style="color:#0000cc">of</span> <span style="color:#0000cc">real</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30: <span style="color:#0000cc">array</span> [1..NumFiles] <span style="color:#0000cc">of</span> <span style="color:#0000cc">real</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>DataWindowHandle: <span style="color:#0000cc">array</span>[1..NumFiles] <span style="color:#0000cc"> of</span> <span style="color:#0000cc">integer</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>vLabel, FileNames: <span style="color:#0000cc">array</span> [1..NumFiles] <span style="color:#0000cc"> of</span> <span style="color:#0000cc">string</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>OutputFilename, OutputPath: <span style="color:#0000cc">string</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; min-height: 12px; "><span style="color:rgb(0, 0, 204)"><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; min-height: 12px; "> <span style="color:#0000cc">procedure</span> ReadAFile;<br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(0, 0, 204); ">var</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(0, 0, 204); "><span style="color:#000000"><span style="white-space:pre">        </span>i: </span>integer<span style="color:#000000">;</span> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span>real1, real2: <span style="color:#0000cc">real</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(0, 0, 204); ">begin</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">        </span><span style="color:#009933">OpenFile</span>(file <span style="color:#666666">'?'</span> , type <span style="color:#cc6600">dataType</span>);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(0, 0, 204); ">end<span style="color:#000000">;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; min-height: 12px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; min-height: 12px; "><span style="color:rgb(0, 0, 204)">begin</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">                </span>FileCount := 0;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; "><span style="white-space:pre">                </span>ReadAFile;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Monaco; color: rgb(0, 0, 204); ">end<span style="color:#000000">;</span></div></div><div><br class="webkit-block-placeholder"></div><div>Thanks much.</div><div><br>-- <br>Joseph Walrath, MD <br>Departments of Ophthalmology<br>Columbia University, Edward S. Harkness Eye Institute <br>St. Vincent's Catholic Medical Center </div> _______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br>http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com<br></blockquote></div><br></div></body></html>