paper-with-me

Papers

REMODEL-LLM: Transforming C code to Java using LLMs

2025-12-12 · Aryan Gupta, Y. Raghu Reddy arxiv

The automated translation of C code to Java code is a notoriously difficult task, fraught with challenges stemming from fundamental paradigm shifts (procedural vs. Object Oriented), memory models (manual pointers vs. Garbage Collection), and incompatible data types. This paper investigates the efficacy of 19 small, quantized LLMs (under 20 billion parameters) for the C to Java translation task. We use a novel, hybrid pipeline that leverages Abstract Syntax Trees (ASTs) for semantic decomposition and employs a highly constrained, rule based prompting strategy. The results are stark: a clear multi tiered performance divide emerged. The vast majority of models (Tier 3, e.g., llama3.1, gemma3, starcoder2) failed 100\% of the tests, proving incapable of generating even basic, runnable Java boilerplate. A small middle tier (Tier 2, e.g., mistral-nemo and mistral) produced runnable code but was plagued by dangerous semantic failures and wrong translations. Only three models (Tier 1: phi4, deepseek-coder-v2, codeqwen) proved viable, passing over 50\% of the test suite. Even these top models failed on the most complex C concepts, such as function pointers, sizeof, and enum logic, revealing a hard ceiling for the reasoning capabilities of current quantized models.

📄 PDF Abstract BibTeX arXiv:2512.11402

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Examination of Code generated by Large Language Models

2024-08-29 · Robin Beer, Alexander Feix, Tim Guttzeit, Tamara Muras 외

Large language models (LLMs), such as ChatGPT and Copilot, are transforming software development by automating code generation and, arguably, enable rapid prototyping, support education, and boost productivity. Therefore…

Code Generation

Automated Testing of COBOL to Java Transformation

2025-04-14 · Sandeep Hans, Atul Kumar, Toshikai Yasue, Kouichi Ono 외

Recent advances in Large Language Model (LLM) based Generative AI techniques have made it feasible to translate enterprise-level code from legacy languages such as COBOL to modern languages such as Java or Python. While …

Language ModelingLanguage ModellingLarge Language Model

A Study of Vulnerability Repair in JavaScript Programs with Large Language Models

2024-03-19 · Tan Khang Le, Saba Alimadadi, Steven Y. Ko

In recent years, JavaScript has become the most widely used programming language, especially in web development. However, writing secure JavaScript code is not trivial, and programmers often make mistakes that lead to se…

Bug fixingCode GenerationProgram Repair

JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Models

2024-06-10 · Jialun Cao, Zhiyong Chen, Jiarong Wu, Shing-Chi Cheung 외

Code generation benchmarks such as HumanEval are widely adopted to evaluate LLMs' capabilities. However, after consolidating the latest 24 benchmarks, we noticed three significant imbalances. First, imbalanced programmin…

BenchmarkingCode GenerationHumanEval

How Effective Are Neural Networks for Fixing Security Vulnerabilities

2023-05-29 · Yi Wu, Nan Jiang, Hung Viet Pham, Thibaud Lutellier 외

Security vulnerability repair is a difficult task that is in dire need of automation. Two groups of techniques have shown promise: (1) large code language models (LLMs) that have been pre-trained on source code for tasks…

Code CompletionProgram Repair