收藏切换
RD2ESC: Multi-Agent Embedded Code Generation Framework
收藏切换
Shuru Tan1, Hongbin Xiao1, Zhi Li2, *, Xiaolan Xie3, Tianhao Wu3, Fei Tang4
Journal of Computer Research and Development | 2026, 63(4) : 854 - 867
Less
收藏切换
Journal of Computer Research and Development | 2026, 63(4): 854-867
• Special Issue on LLMs and Software Engineering •
RD2ESC: Multi-Agent Embedded Code Generation Framework
Full
Shuru Tan1, Hongbin Xiao1, Zhi Li2, *, Xiaolan Xie3, Tianhao Wu3, Fei Tang4
Affiliations
  • 1Key Lab of Education Blockchain and Intelligent Technology (Guangxi Normal University), Ministry of Education, Guilin, Guangxi 541004
  • 2College of Computer Science and Engineering, Guangxi Normal University, Guilin, Guangxi 541004
  • 3College of Computer Science and Engineering, Guilin University of Technology,Guilin, Guangxi 541004
  • 4Huawei Technologies Co., Ltd., Shenzhen, Guangdong 518000
  • born in 1998. PhD candidate. Student member of CCF. His main research interests include intelligent code generation, intelligent information processing, and requirements engineering

    born in 1997. PhD candidate. Student member of CCF. His main research interests include requirements engineering, prompt engineering, and software engineering

    born in 1969. PhD, professor, PhD supervisor. Distinguished member of CCF. His main research interests include software engineering and requirements engineering

    born in 1974. PhD, professor, PhD supervisor. Her main research interests include big data, cloud computing, and manufacturing informatization

    born in 1998. Master. His main research interests include machine learning, graph neural networks, and embedded code generation

    born in 1978. Bachelor. Senior member of CCF, and a TOGAF enterprise architect. His main research interests include enterprise architecture, requirements engineering, and prompt engineering

About Author:

born in 1998. PhD candidate. Student member of CCF. His main research interests include intelligent code generation, intelligent information processing, and requirements engineering

born in 1997. PhD candidate. Student member of CCF. His main research interests include requirements engineering, prompt engineering, and software engineering

born in 1969. PhD, professor, PhD supervisor. Distinguished member of CCF. His main research interests include software engineering and requirements engineering

born in 1974. PhD, professor, PhD supervisor. Her main research interests include big data, cloud computing, and manufacturing informatization

born in 1998. Master. His main research interests include machine learning, graph neural networks, and embedded code generation

born in 1978. Bachelor. Senior member of CCF, and a TOGAF enterprise architect. His main research interests include enterprise architecture, requirements engineering, and prompt engineering

Published: 2026-04-01 doi: 10.7544/issn1000-1239.202550663
Outline
收藏切换

Large language models (LLM) are increasingly being applied in software engineering, but current automated code generation research primarily focuses on general-purpose functional code, lacking effective solutions for the specific requirements of embedded systems. We propose RD2ESC (requirements documents to embedded system code), a prompt-based fine-tuning method that enables LLMs to understand the complex relationships between embedded code and requirements documents, and constructs a multi-agent collaborative code generation framework capable of rapidly generating high-quality embedded code using requirements documents and reference code. Experimental results demonstrate that RD2ESC improves the Pass@1 metric from 0.15 to 0.71 compared with the GPT-4o baseline model, achieving a test pass rate of 0.75 and compilation pass rate of 0.96. Sensitivity analysis reveals that the method exhibits certain dependency on reference code quality, with Pass@1 declining from 0.68 to 0.47 under 10%~50% perturbation conditions and dropping to 0.25 without reference code, while still maintaining basic code generation capabilities. Ablation experiments confirm the synergistic effects among multi-agents, with the complete system demonstrating significant performance improvements compared with individual components. This research provides an effective technical framework for embedded code automatic generation, substantially enhancing embedded system development efficiency.

embedded system code generation  /  multi-agent collaboration  /  large language models  /  prompt engineering  /  compiling feedback optimization
谭舒孺, 肖宏彬, 李智, 谢晓兰, 武天昊, 汤飞. RD2ESC:多智能体嵌入式代码生成框架. 计算机研究与发展, 2026 , 63 (4) : 854 -867 . DOI: 10.7544/issn1000-1239.202550663
Shuru Tan, Hongbin Xiao, Zhi Li, Xiaolan Xie, Tianhao Wu, Fei Tang. RD2ESC: Multi-Agent Embedded Code Generation Framework[J]. Journal of Computer Research and Development, 2026 , 63 (4) : 854 -867 . DOI: 10.7544/issn1000-1239.202550663
Year 2026 volume 63 Issue 4
88
42
Cite this Article
BibTeX
Article Info
doi: 10.7544/issn1000-1239.202550663
  • Receive Date:2025-10-30
  • Online Date:2026-11-17
  • Published:2026-04-01
Article Data
Affiliations
History
  • Received:2025-10-30
  • Revised:2025-12-30
Affiliations
    1Key Lab of Education Blockchain and Intelligent Technology (Guangxi Normal University), Ministry of Education, Guilin, Guangxi 541004
    2College of Computer Science and Engineering, Guangxi Normal University, Guilin, Guangxi 541004
    3College of Computer Science and Engineering, Guilin University of Technology,Guilin, Guangxi 541004
    4Huawei Technologies Co., Ltd., Shenzhen, Guangdong 518000
References
Share
https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/10.7544/issn1000-1239.202550663
Share to
QR

Scan QR to access full text

Cite this article
BibTeX
Citations
表12种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏
  • BibTeX
  • EndNote
  • RefWorks
  • TxT