Hyppää sisältöön
    • Suomeksi
    • In English
Trepo
  • Suomeksi
  • In English
  • Kirjaudu
Näytä viite 
  •   Etusivu
  • Trepo
  • Kandidaatintutkielmat
  • Näytä viite
  •   Etusivu
  • Trepo
  • Kandidaatintutkielmat
  • Näytä viite
JavaScript is disabled for your browser. Some features of this site may not work without it.

Comparison of different LLMs in code translation

Güzel, Emre Cemil (2025)

 
Avaa tiedosto
GüzelEmre.pdf (679.5Kt)
Lataukset: 



Güzel, Emre Cemil
2025

Bachelor's Programme in Science and Engineering
Tekniikan ja luonnontieteiden tiedekunta - Faculty of Engineering and Natural Sciences
This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Hyväksymispäivämäärä
2025-06-16
Näytä kaikki kuvailutiedot
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tuni-202506147181
Tiivistelmä
This thesis investigates the capabilities of modern large language models (LLMs) in translating programming code between languages, specifically from Python to C++. As LLMs are increasingly integrated into software development workflows, understanding their strengths and limitations in practical tasks like code translation is crucial.
The study compares three prominent LLMs, OpenAI’s ChatGPT 4o, Google’s Gemini, and DeepSeek, by providing each with the same Python-based program and analyzing the resulting C++ code in terms of functionality, syntax correctness, and quality of commenting. The base Python program, designed as a Student Grades Manager, was selected for its moderate complexity and incorporation of common programming constructs.
Each LLM’s output was tested and evaluated both manually and through practical compilation and execution. ChatGPT 4o produced largely correct output with a minor formatting issue. Gemini's translation initially failed due to a missing header, which was resolved with minor prompting. DeepSeek generated fully functional code without requiring any corrections and was the only model whose output did not trigger runtime antivirus interference.
Commenting styles varied among the models: Gemini provided extensive inline documentation, DeepSeek offered a concise but well-structured commentary, and ChatGPT’s comments were functional but minimal.
The results highlight that while all three models can produce usable C++ translations from Python, differences exist in reliability, output clarity, and error resilience. The findings suggest that LLMs are powerful tools for code translation tasks, although human oversight remains essential for ensuring code quality and correctness.
Kokoelmat
  • Kandidaatintutkielmat [10476]
Kalevantie 5
PL 617
33014 Tampereen yliopisto
oa[@]tuni.fi | Tietosuoja | Saavutettavuusseloste
 

 

Selaa kokoelmaa

TekijätNimekkeetTiedekunta (2019 -)Tiedekunta (- 2018)Tutkinto-ohjelmat ja opintosuunnatAvainsanatJulkaisuajatKokoelmat

Omat tiedot

Kirjaudu sisäänRekisteröidy
Kalevantie 5
PL 617
33014 Tampereen yliopisto
oa[@]tuni.fi | Tietosuoja | Saavutettavuusseloste