Addressing Compiler Errors: Stack Overflow or Large Language Models?
Not on the map. Why?
Abstract (arXiv)
Compiler error messages serve as an initial resource for programmers dealing with compilation errors. However, previous studies indicate that they often lack sufficient targeted information to resolve code issues. Consequently, programmers typically rely on their own research to fix errors. Historically, Stack Overflow has been the primary resource for such information, but recent advances in large language models offer alternatives. This study systematically examines 100 compiler error messages from three sources to determine the most effective approach for programmers encountering compiler errors. Factors considered include Stack Overflow search methods and the impact of model version and prompt phrasing when using large language models. The results reveal that GPT-4 outperforms Stack Overflow in explaining compiler error messages, the effectiveness of adding code snippets to Stack Overflow searches depends on the search method, and results for Stack Overflow differ significantly between Google and StackExchange API searches. Furthermore, GPT-4 surpasses GPT-3.5, with "How to fix" prompts yielding superior outcomes to "What does this error mean" prompts. These results offer valuable guidance for programmers seeking assistance with compiler error messages, underscoring the transformative potential of advanced large language models like GPT-4 in debugging and opening new avenues of exploration for researchers in AI-assisted programming.
Key facts. Cited by 5 papers in the map (data through 13 Oct 2026). First posted on arXiv 20 Jul 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 2.
5 papers.
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 395
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
- 2024Code Simulation Challenges for Large Language Modelscited by 15
- 2025Code Simulation as a Proxy for High-order Tasks in Large Language Modelscited by 7
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisionscited by 4
- 2025Using LLMs in Generating Design Rationale for Software Architecture Decisions29 Apr 2025
- 2025Code Simulation as a Proxy for High-order Tasks in Large Language Models5 Feb 2025
- 2024Code Simulation Challenges for Large Language Models17 Jan 2024
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Education1 Oct 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023