@inproceedings{ranasinghe-etal-2025-llm,
title = "{LLM}-Assisted Translation of Legacy {FORTRAN} Codes to {C}++: A Cross-Platform Study",
author = "Ranasinghe, Nishath Rajiv and
Jones, Shawn M. and
Kucer, Michal and
Biswas, Ayan and
O{'}Malley, Daniel and
Most, Alexander and
Wanna, Selma Liliane and
Sreekumar, Ajay",
editor = "Jansen, Peter and
Dalvi Mishra, Bhavana and
Trivedi, Harsh and
Prasad Majumder, Bodhisattwa and
Hope, Tom and
Khot, Tushar and
Downey, Doug and
Horvitz, Eric",
booktitle = "Proceedings of the 1st Workshop on AI and Scientific Discovery: Directions and Opportunities",
month = may,
year = "2025",
address = "Albuquerque, New Mexico, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.aisd-main.6/",
pages = "58--69",
ISBN = "979-8-89176-224-4",
abstract = "Large Language Models (LLMs) are increasinglybeing leveraged for generating andtranslating scientific computer codes by bothdomain-experts and non-domain experts. Fortranhas served as one of the go to programminglanguages in legacy high-performance computing(HPC) for scientific discoveries. Despitegrowing adoption, LLM-based code translationof legacy code-bases has not been thoroughlyassessed or quantified for its usability.Here, we studied the applicability of LLMbasedtranslation of Fortran to C++ as a step towardsbuilding an agentic-workflow using openweightLLMs on two different computationalplatforms. We statistically quantified the compilationaccuracy of the translated C++ codes,measured the similarity of the LLM translatedcode to the human translated C++ code, andstatistically quantified the output similarity ofthe Fortran to C++ translation."
}
<?xml version="1.0" encoding="UTF-8"?>
<modsCollection xmlns="http://www.loc.gov/mods/v3">
<mods ID="ranasinghe-etal-2025-llm">
<titleInfo>
<title>LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study</title>
</titleInfo>
<name type="personal">
<namePart type="given">Nishath</namePart>
<namePart type="given">Rajiv</namePart>
<namePart type="family">Ranasinghe</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Shawn</namePart>
<namePart type="given">M</namePart>
<namePart type="family">Jones</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Michal</namePart>
<namePart type="family">Kucer</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Ayan</namePart>
<namePart type="family">Biswas</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Daniel</namePart>
<namePart type="family">O’Malley</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Alexander</namePart>
<namePart type="family">Most</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Selma</namePart>
<namePart type="given">Liliane</namePart>
<namePart type="family">Wanna</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Ajay</namePart>
<namePart type="family">Sreekumar</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<originInfo>
<dateIssued>2025-05</dateIssued>
</originInfo>
<typeOfResource>text</typeOfResource>
<relatedItem type="host">
<titleInfo>
<title>Proceedings of the 1st Workshop on AI and Scientific Discovery: Directions and Opportunities</title>
</titleInfo>
<name type="personal">
<namePart type="given">Peter</namePart>
<namePart type="family">Jansen</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Bhavana</namePart>
<namePart type="family">Dalvi Mishra</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Harsh</namePart>
<namePart type="family">Trivedi</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Bodhisattwa</namePart>
<namePart type="family">Prasad Majumder</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Tom</namePart>
<namePart type="family">Hope</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Tushar</namePart>
<namePart type="family">Khot</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Doug</namePart>
<namePart type="family">Downey</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Eric</namePart>
<namePart type="family">Horvitz</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<originInfo>
<publisher>Association for Computational Linguistics</publisher>
<place>
<placeTerm type="text">Albuquerque, New Mexico, USA</placeTerm>
</place>
</originInfo>
<genre authority="marcgt">conference publication</genre>
<identifier type="isbn">979-8-89176-224-4</identifier>
</relatedItem>
<abstract>Large Language Models (LLMs) are increasinglybeing leveraged for generating andtranslating scientific computer codes by bothdomain-experts and non-domain experts. Fortranhas served as one of the go to programminglanguages in legacy high-performance computing(HPC) for scientific discoveries. Despitegrowing adoption, LLM-based code translationof legacy code-bases has not been thoroughlyassessed or quantified for its usability.Here, we studied the applicability of LLMbasedtranslation of Fortran to C++ as a step towardsbuilding an agentic-workflow using openweightLLMs on two different computationalplatforms. We statistically quantified the compilationaccuracy of the translated C++ codes,measured the similarity of the LLM translatedcode to the human translated C++ code, andstatistically quantified the output similarity ofthe Fortran to C++ translation.</abstract>
<identifier type="citekey">ranasinghe-etal-2025-llm</identifier>
<location>
<url>https://aclanthology.org/2025.aisd-main.6/</url>
</location>
<part>
<date>2025-05</date>
<extent unit="page">
<start>58</start>
<end>69</end>
</extent>
</part>
</mods>
</modsCollection>
%0 Conference Proceedings
%T LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study
%A Ranasinghe, Nishath Rajiv
%A Jones, Shawn M.
%A Kucer, Michal
%A Biswas, Ayan
%A O’Malley, Daniel
%A Most, Alexander
%A Wanna, Selma Liliane
%A Sreekumar, Ajay
%Y Jansen, Peter
%Y Dalvi Mishra, Bhavana
%Y Trivedi, Harsh
%Y Prasad Majumder, Bodhisattwa
%Y Hope, Tom
%Y Khot, Tushar
%Y Downey, Doug
%Y Horvitz, Eric
%S Proceedings of the 1st Workshop on AI and Scientific Discovery: Directions and Opportunities
%D 2025
%8 May
%I Association for Computational Linguistics
%C Albuquerque, New Mexico, USA
%@ 979-8-89176-224-4
%F ranasinghe-etal-2025-llm
%X Large Language Models (LLMs) are increasinglybeing leveraged for generating andtranslating scientific computer codes by bothdomain-experts and non-domain experts. Fortranhas served as one of the go to programminglanguages in legacy high-performance computing(HPC) for scientific discoveries. Despitegrowing adoption, LLM-based code translationof legacy code-bases has not been thoroughlyassessed or quantified for its usability.Here, we studied the applicability of LLMbasedtranslation of Fortran to C++ as a step towardsbuilding an agentic-workflow using openweightLLMs on two different computationalplatforms. We statistically quantified the compilationaccuracy of the translated C++ codes,measured the similarity of the LLM translatedcode to the human translated C++ code, andstatistically quantified the output similarity ofthe Fortran to C++ translation.
%U https://aclanthology.org/2025.aisd-main.6/
%P 58-69
Markdown (Informal)
[LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study](https://aclanthology.org/2025.aisd-main.6/) (Ranasinghe et al., AISD 2025)
ACL
- Nishath Rajiv Ranasinghe, Shawn M. Jones, Michal Kucer, Ayan Biswas, Daniel O’Malley, Alexander Most, Selma Liliane Wanna, and Ajay Sreekumar. 2025. LLM-Assisted Translation of Legacy FORTRAN Codes to C++: A Cross-Platform Study. In Proceedings of the 1st Workshop on AI and Scientific Discovery: Directions and Opportunities, pages 58–69, Albuquerque, New Mexico, USA. Association for Computational Linguistics.