paper-with-me

Papers

LEGO-Compiler: Enhancing Neural Compilation Through Translation Composability

2025-05-26 · Shuoming Zhang, Jiacheng Zhao, Chunwei Xia, Zheng Wang, Yunji Chen, Xiaobing Feng, Huimin Cui

Large language models (LLMs) have the potential to revolutionize how we design and implement compilers and code translation tools. However, existing LLMs struggle to handle long and complex programs. We introduce LEGO-Compiler, a novel neural compilation system that leverages LLMs to translate high-level languages into assembly code. Our approach centers on three key innovations: LEGO translation, which decomposes the input program into manageable blocks; breaking down the complex compilation process into smaller, simpler verifiable steps by organizing it as a verifiable LLM workflow by external tests; and a feedback mechanism for self-correction. Supported by formal proofs of translation composability, LEGO-Compiler demonstrates high accuracy on multiple datasets, including over 99% on ExeBench and 97.9% on industrial-grade AnsiBench. Additionally, LEGO-Compiler has also acheived near one order-of-magnitude improvement on compilable code size scalability. This work opens new avenues for applying LLMs to system-level tasks, complementing traditional compiler technologies.

📄 PDF Abstract BibTeX arXiv:2505.20356

Code (0)

등록된 구현이 없습니다.

Tasks

Code TranslationTranslation

Similar Papers 제목 키워드 기반

Boosting Neural Networks to Decompile Optimized Binaries

2023-01-03 · Ying Cao, Ruigang Liang, Kai Chen, Peiwei Hu

Decompilation aims to transform a low-level program language (LPL) (eg., binary file) into its functionally-equivalent high-level program language (HPL) (e.g., C/C++). It is a core technology in software security, especi…

Graph Neural NetworkMachine TranslationMalware AnalysisNMT+1

Towards Neural Decompilation

2019-05-20 · Omer Katz, Yuval Olshaker, Yoav Goldberg, Eran Yahav

We address the problem of automatic decompilation, converting a program in low-level representation back to a higher-level human-readable programming language. The problem of decompilation is extremely important for secu…

C++ codeMachine TranslationTranslation

Beyond the C: Retargetable Decompilation using Neural Machine Translation

2022-12-17 · Iman Hosseini, Brendan Dolan-Gavitt

The problem of reversing the compilation process, decompilation, is an important tool in reverse engineering of computer software. Recently, researchers have proposed using techniques from neural machine translation to a…

C++ codeMachine TranslationTranslation

QiMeng-NeuComBack: Self-Evolving Translation from IR to Assembly Code

2025-11-03 · Hainan Fang, Yuanbo Wen, Jun Bi, Yihan Wang 외 arxiv

Compilers, while essential, are notoriously complex systems that demand prohibitively expensive human expertise to develop and maintain. The recent advancements in Large Language Models (LLMs) offer a compelling new para…

Compiler Optimization for Quantum Computing Using Reinforcement Learning

2022-12-08 · Nils Quetschlich, Lukas Burgholzer, Robert Wille

Any quantum computing application, once encoded as a quantum circuit, must be compiled before being executable on a quantum computer. Similar to classical compilation, quantum compilation is a sequential process with man…

Compiler Optimizationreinforcement-learningReinforcement LearningReinforcement Learning (RL)