From LLMs to Agents in Programming: The Impact of Providing an LLM with a Compiler
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large Language Models have demonstrated a remarkable capability in natural language and program generation and software development. However, the source code generated by the LLMs does not always meet quality requirements and may fail to compile. Therefore, many studies evolve into agents that can reason about the problem before generating the source code for the solution. The goal of this paper is to study the degree to which such agents benefit from access to software development tools, in our case, a gcc compiler. We conduct a computational experiment on the RosettaCode dataset, on 699 programming tasks in C. We evaluate how the integration with a compiler shifts the role of the language model from a passive generator to an active agent capable of iteratively developing runnable programs based on feedback from the compiler. We evaluated 16 language models with sizes ranging from small (135 million) to medium (3 billion) and large (70 billion). Our results show that access to a compiler improved the compilation success by 5.3 to 79.4 percentage units in compilation without affecting the semantics of the generated program. Syntax errors dropped by 75%, and errors related to undefined references dropped by 87% for the tasks where the agents outperformed the baselines. We also observed that in some cases, smaller models with a compiler outperform larger models with a compiler. We conclude that it is essential for LLMs to have access to software engineering tools to enhance their performance and reduce the need for large models in software engineering, such as reducing our energy footprint.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 18 of its 21 references that are in the map. First posted on arXiv 17 Jan 2026.
Builds on
18 of 21 references.
Closest ancestors · 5
Same direction, newest first
- 2025CompileAgent: Automated Real-World Repo-Level Compilation with Tool-Integrated LLM-based Agent System7 May
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models7 Nov
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization2 Apr
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges14 Jan
Other references · 13
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 264
- 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2024Automated Unit Test Improvement using Large Language Models at Metacited by 73
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
- 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
1 more
- 2024Compiler generated feedback for Large Language Modelscited by 9
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025A Survey on Code Generation with LLM-based Agents
- 2025AI-Generated Code Is Not Reproducible (Yet): An Empirical Study of Dependency Gaps in LLM-Based Coding Agents
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents
- 2026Frontier Coding Agents Use Metaprogramming to Adapt to Unfamiliar Programming Languages
- 2026Exploring the Agentic Frontier of Verilog Code Generation
- 2025Beyond Code Generation: LLM-supported Exploration of the Program Design Space
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2025CXXCrafter: An LLM-Based Agent for Automated C/C++ Open Source Software Building