Font Size: a A A

Design And Implementation Of C To Java Automatic Program Transformation System Prototype

Posted on:2007-02-14Degree:MasterType:Thesis
Country:ChinaCandidate:J F XuFull Text:PDF
GTID:2178360185476089Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
As fast rising in economy today, people emphasis more to the cost and efficiency. In order to get rid of the constraint of platform to users, fully utilize the existing achievement, save expenses of re-development, platform migration or software reuse is become more and more important.Thus, the technology of source code transformation is widely applied of software maintenance, legacy system modernization and software reengineermg, etc. It has great practical and economic value. It can not only avoid reduplicate labor and improve efficiency and quality of software production, but also change a plenty of legacy systems into the systems that can be evolved easily in order to utilize these useful resource adequately.What this dissertation expatiate is just about the researching of this thesis. In this dissertation, we described the designing and achievement of a translation system prototype from C language to Java language. The whole achievements of this system draw lessons from compiler system. Each parts of the system does some analysis and processing, analyzing lexical, syntax of source program step by step, dividing source program to word or symbol which can be transformed directly. At the end, we can transform this source program to produce target code of identical results of execution with easy understanding.In this dissertation, we survey and evaluate current approaches to the migration of source code to Java. The survey of current migration approaches reveals a number of their restrictions and disadvantages in the context of moving program libraries to Java and integrating them with Java programs. Using the experiences from this survey, we established a number of goals for an improved translation approach and designed the translation rules by closely following these goals. To show the practicality of this approach, we implemented a system prototype that performs the translation on according to the designed approach and evaluated its result with respect to the goals using selected case studies.In the transformation from C to Java, a central problem is the transformation of C pointers to Java references. We provide a improved strategie for this transformation based on pointer block model. The code resulting from examination is maintainable and functionally equivalent to the original code.Now, transformation system we implemented has already transformed some typical algorithms described by c such as shortest path algorithm,quick sort algorithm into Java program.The contents of this paper expatiate on some consideration and effective methods of carrying out the transformation between the different programming languages' source codes to improve these code's capabilities of transplant and reuse.
Keywords/Search Tags:transformation system, software reuse, C, Java, pointer, abstract syntax tree
PDF Full Text Request
Related items