compilers

Designing and implementing the pipeline that converts source code to executable code, including lexing, parsing (e.g., ANTLR), semantic analysis, intermediate representations, optimizations, and code generation or targeting backends like LLVM; requires knowledge of type systems, control-flow/data-flow analysis, and toolchains.

compilers

12-Month Skill Trend

Momentum and market value over time
Trending
Score
+20 in 12 mo
96
12 mo agoNow
Career
Value
+$12K in 12 mo
$42K/year
12 mo agoNow

Recommended Survey Paper

Quick overview of the field
View more

A Survey On Large Language Models For Code Generation

Mar 03, 2025
NH
Nam Huynh
🏛️ University of Oklahoma

This paper systematically reviews bottlenecks, optimization strategies, and evaluation frameworks for large language models (LLMs) in code generation. It addresses key limitations in functional correctness, readability, and security. To overcome these, the paper unifies major fine-tuning paradigms—including supervised fine-tuning, instruction tuning, reinforcement learning from human feedback (RLHF), and code-specific pretraining—and proposes a multi-granularity evaluation framework covering syntax, semantics, security, and engineering best practices. Its core contribution is a novel “Capability–Optimization–Evaluation–Deployment” full-stack analytical model that, for the first time, coherently maps the fine-tuning methodology spectrum to industrial tools (e.g., CodeLlama, GitHub Copilot). The work clarifies current technical boundaries, distills reusable methodological guidelines, and provides both theoretical foundations and practical pathways to enable low-barrier, cross-domain programming democratization. (149 words)

LLMs enable non-technical users to generate code using human language.Review of metrics, benchmarks, and applications of LLMs in code generation.Survey explores fine-tuning techniques to improve LLMs' code generation performance.

Must-Read Papers

Most classic and influential ideas
View more

Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets

Mar 21, 2025
HJ
Hamed Jelodar
🏛️ Canadian Institute for Cybersecurity | University of New Brunswick

This study addresses fragmented task definitions, inconsistent evaluation protocols, and dataset biases hindering systematic progress in applying large language models (LLMs) to source code analysis. We conduct a systematic review of 217 publications from 2019–2024 and propose the first three-dimensional knowledge graph—spanning *tasks*, *models*, and *datasets*—specifically for code analysis, covering 12 analytical task categories, 8 mainstream LLM variants, and 19 core benchmarks. Methodologically, we introduce a reproducible, standardized evaluation framework grounded in empirical analysis. Through bibliometric analysis and architectural feature modeling, we identify key evolutionary trends and persistent bottlenecks—including limited generalizability and inadequate contextual modeling. Our contributions provide a structured conceptual foundation and methodological guidance for advancing LLM-driven code intelligence research.

Exploring LLMs' role in source code analysis tasksIdentifying challenges in LLM-based code analysis workflowsInvestigating models and datasets for code analysis

This work addresses the prevalent issue in large language models (LLMs) of introducing control-flow, type, or I/O errors during code translation due to neglect of program intent. To mitigate this, the paper proposes the first systematic use of a language-agnostic, structured intermediate specification that preserves semantic fidelity through an intermediate representation, structured generation, and automated test-based validation. Evaluated on the Avatar and CodeNet datasets with five state-of-the-art LLMs, the approach significantly improves translation accuracy, raising the micro-averaged accuracy from 67.7% to 78.5%. It completely eliminates lexical errors and substantially reduces errors related to structure, declarations, and runtime dependencies.

code translationcross-language programmingLarge Language Models

ExeCoder: Empowering Large Language Models with Executability Representation for Code Translation

Jan 30, 2025
MH
Minghua He
🏛️ Peking University | Microsoft | KTH Royal Institute of Technology

Existing code translation models often generate non-executable or semantically inaccurate code due to insufficient modeling of runtime logic. To address this, we propose the first executability-aware large language model, explicitly integrating three complementary executability representations—functional semantics, syntactic structure, and variable dependencies—into both pretraining and fine-tuning. Specifically, we construct variable dependency graphs via static analysis, augment token embeddings with syntax tree information, and enforce functional equivalence constraints during supervised fine-tuning. We introduce TransCoder-test-X, a new authoritative benchmark for rigorous evaluation. On this benchmark, our model substantially outperforms leading open-source code models (+10.88%–42.97% absolute improvement) and surpasses GPT-4o, establishing the first code translation paradigm fundamentally driven by executability.

Code TranslationExecution ReliabilityLarge Language Models

Large Language Model powered Symbolic Execution

Apr 02, 2025
YL
Yihe Li
🏛️ National University of Singapore

Existing large language models (LLMs) face significant challenges in direct symbolic execution—including low precision, high computational overhead, and strong dependence on large-scale models and high-end hardware—hindering practical deployment. To address these limitations, we propose a novel LLM-driven lightweight symbolic execution paradigm. Our approach employs path-guided task decomposition to decouple complex program analysis into fine-grained, resource-efficient subtasks. We introduce the first path-constraint generalization method based on universal code representations—rather than restricted formal languages—enabling language-agnostic constraint modeling. We further implement AutoExe, a lightweight LLM-native symbolic execution engine. Experimental results demonstrate that our method substantially improves both analysis accuracy and path-exploration scalability for small-scale LLMs running on consumer-grade hardware, matching the performance of traditional symbolic execution tools. To the best of our knowledge, this is the first work achieving highly accessible and broadly generalizable LLM-native symbolic execution.

Enhancing LLM-based program analysis accuracy and scaleGeneralizing path constraints without formal language translationReducing hardware requirements for symbolic execution tasks

Code Generation and Algorithmic Problem Solving Using Llama 3.1 405B

Sep 26, 2024
AD
Aniket Deroy
🏛️ IIT Kharagpur

This work systematically evaluates the capability boundaries of Llama 3.1 405B on natural language-to-multilingual executable code generation, focusing on algorithmic problem solving and fundamental data structure tasks. To address limitations in cross-lingual code synthesis and robustness, we propose a synergistic approach integrating context-aware prompt engineering, multilingual code fine-tuning, and dynamic test-time validation. On standard benchmarks—including HumanEval and MBPP—our method achieves state-of-the-art performance, attaining >82% pass@1 accuracy on medium-difficulty algorithmic problems. We further provide the first empirical evidence that Llama 3.1 405B exhibits strong generalization on classical computer science problems (e.g., sorting, graph traversal), yet its accuracy drops substantially in frontier domains such as quantum computing and bioinformatics. These findings offer rigorous empirical support and a concrete technical pathway for large language model–driven programming assistance and computational education.

Assessing multi-language support and debugging in AI-driven programmingEvaluating performance limitations in Quantum Computing and BioinformaticsExploring Llama 3.1's code generation from natural language prompts

Latest Papers

What's happening recently
View more

This work addresses the challenges of low reliability, poor auditability, high cost, and security risks associated with runtime invocation of large language models (LLMs) in high-stakes enterprise workflows. To overcome these issues, we propose a novel “compiled AI” paradigm, wherein LLMs generate executable code during compilation, eliminating the need for model calls at runtime and thereby ensuring deterministic execution. We present the first systematic application of this paradigm to high-risk scenarios, integrating constrained code generation, a four-stage verification pipeline, template-embedded business logic functions, and an operation-oriented evaluation framework to jointly achieve reliability, auditability, and security. Experiments demonstrate a 96% success rate on function-calling tasks with zero runtime token consumption; 80.0% and 80.4% accuracy on critical field extraction and line-item recognition in document intelligence tasks; and strong security performance, with 96.7% prompt injection detection accuracy and 87.5% static analysis precision without false positives.

auditabilitycompiled AIdeterministic execution

Existing direct code-to-code transformation approaches often suffer from semantic drift, implicit behavioral changes, and loss of traceability. To address these issues, this work proposes a specification-based Code2Text2Code refactoring framework that first translates source code into a neutral textual specification before generating target code. The approach integrates abstract syntax tree (AST) and dependency graph analysis, semantic-aware code chunking, retrieval-augmented generation, and DSPy-based prompt tuning, further enhanced by iterative validation and graph-based formal verification. This pipeline ensures high-fidelity semantic preservation and controllable evolution during code transformation. Experimental results demonstrate that the proposed method significantly reduces transformation loss and substantially improves semantic consistency, interface stability, and cross-language traceability of the refactored code.

behavioral changesCode2Code transformationdomain logic reconstruction

This work addresses the interoperability challenge between GCC and LLVM compiler intermediate representations (IRs), which stems from their semantic and structural differences. To bridge this gap, the authors propose IRIS-14B, the first large language model specifically designed for IR-to-IR translation. Built upon a 14-billion-parameter Transformer architecture, IRIS-14B leverages supervised fine-tuning to learn the mapping between GIMPLE and LLVM IR derived from the same C source code, enabling high-fidelity automatic translation. Experimental results demonstrate that IRIS-14B substantially outperforms existing open-source large models on real-world C programs and competitive programming tasks, achieving up to a 44-percentage-point improvement in accuracy. This study provides the first empirical validation of large language models as effective and feasible interoperability layers within neuro-symbolic hybrid compilation frameworks.

Compiler Intermediate RepresentationCross-toolchain InteroperabilityGIMPLE

This work addresses the challenge of automating library API migration in the absence of real-world migration examples. To overcome this limitation, the authors propose a novel unsupervised approach that leverages large language models (LLMs) to generate initial migration examples without requiring labeled data. These examples are then generalized by an intelligent agent into structured, testable code transformation rules, which are integrated into the PolyglotPiranha framework for execution. This study represents the first integration of LLMs’ zero-shot generation capabilities with programmatic code transformation tools. The method successfully synthesizes reusable and generalizable migration scripts across multiple Python library migration tasks, significantly enhancing the feasibility and practicality of API migration in fully unsupervised settings.

API migrationautomated code transformationcode refactoring

This work addresses the significant challenges posed by advanced obfuscation techniques in malware reverse engineering, which severely hinder decompilation, and the limited domain adaptability of existing large language models to malicious code. To bridge this gap, the paper proposes a domain-adaptive large language model framework tailored for reverse engineering. It introduces a novel multi-adapter mechanism to align syntactic and semantic structures between assembly and source code, and employs a unified Seq2Seq architecture with task-specific prefixes to enable bidirectional translation (assembly ↔ source code) under end-to-end constraints. Experimental results demonstrate that the proposed approach substantially outperforms current decompilation tools and general-purpose code models, exhibiting strong bidirectional generalization capabilities.

code decompilationlarge language modelsmalware analysis

Hot Scholars

ZZ

Zibin Zheng

IEEE Fellow, Highly Cited Researcher, Sun Yat-sen University, China
BlockchainSmart ContractServices ComputingSoftware Reliability
HZ

Hongyu Zhang

Chongqing University
Software EngineeringMining Software RepositoriesData-driven Software EngineeringSoftware Analytics
GL

Ge Li

Full Professor of Computer Science, Peking University
Program AnalysisProgram GenerationDeep Learning
ZJ

Zhi Jin

Sun Yat-Sen University, Associate Professor
HL

Huawei Li

Institute of Computing Technology, Chinese Academy of Sciences
computer engineering