Font Size: a A A

Fortran 95 To C/c++ Translation System Design And Analysis

Posted on:2005-07-30Degree:MasterType:Thesis
Country:ChinaCandidate:L L HeFull Text:PDF
GTID:2208360125964337Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
FORTRAN is the first advanced programming language, which was designed from 1954 and implemented in IBM740 machine in 1957. In 1966, American Standard Association issued ASA FORTRAN. The latest version is FORTRAN 2000. FORTRAN is a typical programming language that is focused on execution efficiency, has simple structure, and doesn't stress on programming tricks. FORTRAN is mainly used in science computing. As a tool for numerical value computing, it is especially adapted to the complicate computation with few data. In foreign, FORTRAN is widely used in science computation and simulated engineering computation, such as aviation, geologic exploitation, weather forecast and architecture construction. There are numerous stable source codes developed in DOS environment, which is our fortune. With the development of computer science, there are less programmer use FORTRAN. Meanwhile, C/C++ became the most used programming language for its powerful function. In this condition, some companies hope to translate the FORTRAN77 or FORTRAN95 source code to C/C++ source code with the same function. Therefore these code can be used to re-development. f2c is the translation tool which translates FORTRAN77 to correspond C code. But this tool has some drawback. The key is that FORTRAN95 were added many new characteristics, such as object-oriented feature and enhanced function to deal with word operation, which make FORTRAN be applied to develop information system and OA system, and result in more power in the field of numerical computation. So the problem is that old translator can't correctly translate many application coded in FORTRAN95. It is the time to design new translators to adapt the requirement, which has much market and research value.Based on the theory of code translation, we introduce our FTOC/C++ translation system. We analyse significance of the project, the selection of target source code, and the complexity of the system. Furthermore, we give the system and module architecture, and introduce the design of precompile module, lexical module and syntax module. Then we list parts of relation between FORTRAN95 and C/C++. Lastly, we emphasize the meaning of this project and some important issue about translator.
Keywords/Search Tags:FORTRAN95, translator, precompile, lexical, syntax
PDF Full Text Request
Related items