Next: Conclusions and further Up: Splice and template Previous: Optimization of the

Code optimization using Splice

Some information is given here to explain how Splice can be used in conjunction with Optimize to automate code generation. Specifically, it is necessary to keep track of the number of optimization variables introduced during the optimization process, in order to make appropriate type and dimension declarations.

In FORTRAN, it is possible to declare all optimization variables to be the same type by using implicit statement declarations as mentioned previously. In C this is not possible and there are several strategies which may be adopted, the simplest of which is outlined below.


bondaren@thsun1.jinr.ru