Abstract:Code conversion technology plays an important role in fields of code generation. This paper presents a template-based “attributes match–n, replace” algorithm for code conversion between programming languages. Using this method, we successfully convert OIL, which is one of important parts of OSEK specifications, to C.