An L-Attributed Grammar for Adjoint Code
An L-Attributed Grammar for Adjoint Code
复制标题
DOI:
--
复制
发表时间:
2007
期刊:
影响因子:
--
通讯作者:
U. Naumann;J. Riehme
中科院分区:
文献类型:
--
作者:
U. Naumann;J. Riehme
LuFG Informatik 12, Department of Computer Science, RWTH Aachen University52056 Aachen, Germanynaumann@stce.rwth-aachen.deAbstract. Gradients of high-dimensional functions can be computed efficientlyand with machine accuracy by so-called adjoint codes. We present an L-attributedgrammar for the single-pass generation of intraprocedural adjoint code for a sim-ple imperative language (a subset of C). Our ideas can easily be applied to anyprogramming language that is suitable for syntax-directed translation. Moreoverthe conceptual insights are useful in the context of multi-passgeneration of adjointcode. Our focus is on correctness. The necessary domain-specific code optimiza-tions are beyond the scope of this paper. We give references to correspondingwork in this area.