School of Computer Science and Technology,Wuhan University of Science and Technology;
[Objective] The rapid development of large language models(LLMs) has significantly advanced code generation tools. Totackle issues such as the gap between theory and practice, lack of experience, and the high complexity of programming in the experimentalteaching for the Principles of Compiler course, this study designs and implements an experimental teaching system powered by afine-tuned StarCoder2 LLM. The system offers personalized learning support during experimental sessions in the course, helping studentsdevelop skills in design, implementation, optimization, verification, and programming. [Methods] This paper designs and implements anexperimental teaching system based on fine-tuned StarCoder2 LLM with a progressive teaching approach, allowing students to build asolid foundation in each stage of learning. By processing step-by-step through the design and implementation stages, students can deepentheir understanding of compiler systems. The StarCoder2 model is fine-tuned specifically for the Principles of Compiler course, withprogramming tasks and theoretical concepts tailored for this purpose. This fine-tuning ensures the model specialization and effectivenessin code generation and explanation, enabling real-time, personalized support for students at each stage of their learning process. [Results]This progressive teaching approach helps students gradually grasp complex concepts and skills related to the principles of the compilercourse. The fine-tuned StarCoder2 LLM not only increases students' engagement and motivation but also offers tailored guidance andsupport, enhancing their programming and problem-solving abilities. Through interactions with the fine-tuned model, students achieve abetter understanding of the compiling process through interaction, completing experimental tasks more efficiently. This elevates theiroverall comprehension of compiler principles. [Conclusions] By designing and implementing this experimental teaching system based onthe fine-tuned StarCoder2 LLM, this paper effectively addresses common challenges in the teaching of compiler principles. Theprogressive teaching approach deepens students' understanding of the subject while enhancing their programming skills andproblem-solving abilities. This teaching system presents opportunities and ideas for the principles of the compiler course and fostersfurther development and improvement. It is worthy of broader application and promotion in other courses as well.
125 | 0 | 0 |
Downloads | Citas | Reads |
[1]余月,李凤霞,陈宇峰,等.计算机编译原理课程虚拟实验设计与实践[J].实验技术与管理, 2019, 36(8):123–126.YU Y, LI F X, CHEN Y F, et al. Design and practice on virtual experiment of Computer Compilation Principle course[J].Experimental Technology and Management, 2019, 36(8):123–126.(in Chinese)
[2]张莉,蒋竞.编译课程建设思路及成效[J].计算机教育,2024(5):25–30.ZHANG L, JIANG J. Thoughts and outcomes on the Construction of Compiler course[J]. Computer Education, 2024(5):25–30.(in Chinese)
[3]计卫星,王贵珍.基于开源社区的编译原理课程构建[J].中国大学教学, 2021(增刊1):46–53.JI W X, WANG G Z. The Construction of the Principles of Compiler course based on open source communities[J]. China University Teaching, 2021(S1):46–53.(in Chinese)
[4]王朝坤.基于Java的编译原理课程案例教学方法初探[J].计算机教育, 2011(11):48–51, 60.WANG C K. An exploration of cases teaching method for the Principles of Compiler course based on Java[J]. Computer Education, 2011(11):48–51, 60.(in Chinese)
[5]于建伟,李旭伟,吴芝明.编译原理演示模块的设计与实现[J].实验室研究与探索, 2018, 37(9):138–142, 180.YU J W, LI X W, WU Z M. Design and implementation of compiler theory demo module[J]. Research and Exploration in Laboratory, 2018, 37(9):138–142, 180.(in Chinese)
[6]计卫星,王贵珍,李侃.编译原理语言认知实验设计与实践[J].计算机教育, 2019(8):94–97.JI W X, WANG G Z, LI K. Design and practices of the language cognition experiments for the Principles of Compiler course[J].Computer Education, 2019(8):94–97.(in Chinese)
[7]张科,张铭,陈娟,等.计算机教育研究浅析——从ACM计算机科学教育大会看国内外计算机教育科研[J].中国计算机学会通讯, 2019, 15(4):16–26.ZHANG K, ZHANG M, CHEN J, et al. Design and practices of the language cognition experiments for the Principles of Compiler course[J]. Chinese Computer Society Newsletter,2019, 15(4):16–26.(in Chinese)
[8]李清勇,耿阳李敖,彭文娟,等.“私教”还是“枪手”:基于大模型的计算机实践教学探索[J].实验技术与管理, 2024,41(5):1–8.LI Q Y, GENG Y L A, PENG W J, et al. Tutor or impostor:Exploring computer practice teaching based on large language models[J]. Experimental Technology and Management, 2024,41(5):1–8.(in Chinese)
[9]张金,宫晓利,高小鹏,等.基于通用大语言模型的计算机系统创新实验设计[J].实验技术与管理, 2024, 41(10):1–9.ZHANG J, GONG X L, GAO X P, et al. Innovative experimental design of computer systems based on general large language models[J]. Experimental Technology and Management,2024, 41(10):1–9.(in Chinese)
[10]胡星,夏鑫,王千祥.代码大语言模型的实践与挑战[J].中国计算机学会通讯, 2024, 20(8):19–23.HU X, XIA X, WANG Q X. Practices and challenges of code large language models[J]. Chinese Computer Society Newsletter,2024, 20(8):19–23.(in Chinese)
[11]刘茂福,毕健旗,熊莹,等.编译原理与自然语言处理的实验对齐研究[J].计算机教育, 2020(3):36–42.LIU M F, BI J Q, XIONG Y, et al. Research on the experimental alignment of compilation principles and natural language processing[J]. Computer Education, 2020(3):36–42.(in Chinese)
[12]张洪滨,周旭林,邢明杰,等. AutoConfig:面向深度学习编译优化的自动配置机制[J].软件学报, 2024, 35(6):2668–2686.ZHANG H B, ZHOU X L, XING M J, et al. AutoConfig:Automatic configuration mechanism for deep learning compilation optimization[J]. Journal of Software, 2024, 35(6):2668–2686.(in Chinese).
[13]史涯晴.突出编程能力培养的编译原理课程教学改革[J].计算机教育, 2022(9):105–108.SHI Y Q. Teaching reform of the Principles of Compiler course to highlight programming ability cultivation[J]. Computer Education, 2022(9):105–108.(in Chinese)
[14]田莉,郝雯娟,王志凌.四旋翼飞行器创新实验平台的渐进式教学实践[J].实验室研究与探索, 2023, 42(10):165–169,210.TIAN L, HAO W J, WANG Z L. Progressive teaching practice for innovative experimental platform based on quadrotor aircraft[J]. Research and Exploration in Laboratory, 2023,42(10):165–169, 210.(in Chinese)
[15]孙守卿,鞠传香,刘晓红.计算思维培养为核心的编译原理实验教学实践[J].电脑知识与技术, 2018, 14(34):90, 93.SUN S Q, JU C X, LIU X H. Experimental teaching practice of compilation principle with computational thinking cultivation as the core[J]. Computer Knowledge and Technology, 2018,14(34):90–93.(in Chinese)
[16] LOZHKOV R, LI R, ALLAL L B, et al. StarCoder 2 and the stack v2:The next generation[EB/OL]. arXiv, 2024,http://dx.doi.org/10.48550/arXiv.2402.19173.
[17]杨奎河,赵玲玲.面向专业认证的编译原理课程分析评价及改进[J].福建电脑, 2021, 37(7):158–159.YANG K H, ZHAO L L. Analysis evaluation and improvement of professional certification oriented Compiler Principles course[J]. Journal of Fujian Computer, 2021, 37(7):158–159.(in Chinese)
Basic Information:
DOI:10.16791/j.cnki.sjg.2025.04.029
China Classification Code:G642.423;TP314-4
Citation Information:
[1]张友衡,熊莹,周放等.基于微调StarCoder2大模型的“编译原理”课程实验系统[J].实验技术与管理,2025,42(04):227-232.DOI:10.16791/j.cnki.sjg.2025.04.029.
Fund Information:
国家级大学生创新训练项目(202310488021); 武汉科技大学教研项目(2023X001)