REMODEL-LLM: Transforming C code to Java using LLMs
Not on the map. Why?
Abstract (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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 25 references that are in the map. First posted on arXiv 12 Dec 2025.
Builds on
16 of 25 references.
References · 16
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023Mistral 7Bcited by 3,164
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Yi: Open Foundation Models by 01.AIcited by 719
- 2024Phi-4 Technical Reportcited by 711
- 2023The Falcon Series of Open Language Modelscited by 535
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2025Qwen3-Omni Technical Reportcited by 497
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
- 2020Unsupervised Translation of Programming Languagescited by 263
4 more
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
- 2024AST-T5: Structure-Aware Pretraining for Code Generation and Understandingcited by 33
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024SpecTra: Enhancing the Code Translation Ability of Language Models by Generating Multi-Modal Specifications
- 2024Don't Transform the Code, Code the Transforms: Towards Precise Code Rewriting using LLMs
- 2026Enhancing LLM-Based Code Translation with Verified Multi-Semantic Representations ↗
- 2026CangjieBench: Benchmarking LLMs on a Low-Resource General-Purpose Programming Language
- 2025When Code Crosses Borders: A Security-Centric Study of LLM-based Code Translation ↗
- 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inference
- 2025Beyond Code Pairs: Dialogue-Based Data Generation for LLM Code Translation
- 2025LLM4VV: Evaluating Cutting-Edge LLMs for Generation and Evaluation of Directive-Based Parallel Programming Model Compiler Tests ↗