With each passing day and global business trends cause tremendous existing system fail to catch up with latest business requirement changes. System migration and update become the buzzword in IT fields recently. And the emerging problem of how to reduce costs, enhance efficiency, minimize the impact of changing requirements on the whole system, and extend the lifetime of software having being pondered by many developers for a long time. However, in traditional styles, solving these problems is very difficult or only solved imperfectly. As a result, many code generation framework or technologies have been introduced, such as MDA,Andromda,Structs etc, which greatly changing traditional development styles.General code generation technologies could enhance efficiency and improve software process. But, as far as domain specific applications are concerned, these general technologies are insufficient. After analyzing the statusquo of code generation technologies home and abroad, this article focuses on the research and application of multi-level code generation technology, code translation technology, code generation technology based on general platform, aming at solving the real problems of this special domain. Fist, depicts the multi-level code generation model, and give a real application case. Second, discusses the code translation technology with an example of cross platform SQL translation. Third, come to the code generation technology based on general platform, denoting the whole process of using state machine and other theory to solve domain specific problems. Though this paper deals with the domain specific issues, our approaches have a lot in common techniques, which can be leveraged in dealing with other application fields as well. |