{"title":"基础第一:通过调试C编译器提高C在编程入门课程中的可行性","authors":"Andrew Taylor, J. Renzella, Alexandra Vassar","doi":"10.1145/3545945.3569768","DOIUrl":null,"url":null,"abstract":"This paper presents the Debugging C Compiler (DCC), a system that composes a suite of compilers with static and dynamic analysis tools to support introductory C programming students. Using C in our introductory computing courses exposes students to low-level mechanics of the operating system, such as pointers and manual memory management - concepts critical in establishing a solid foundation of computing. Unlike typical C implementations, DCC provides programmers with enhanced, approachable run- and compile-time checking and messages. DCC clarifies C's cryptic operating system errors such as segmentation faults and alleviates the need for students to analyse memory dumps and tackle undefined behaviours. This paper describes DCC's implementation and features, and measures the tool's efficacy in aiding novice C programmers. We further present our deep reflections as to how DCC has enabled us to continue to use C in our large introductory programming courses, with an estimated five million compilations to date. Our research also outlines avenues for future work, which we hope will support others in delivering a foundations-first approach to introductory programming.","PeriodicalId":371326,"journal":{"name":"Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1","volume":"10 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-03-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Foundations First: Improving C's Viability in Introductory Programming Courses with the Debugging C Compiler\",\"authors\":\"Andrew Taylor, J. Renzella, Alexandra Vassar\",\"doi\":\"10.1145/3545945.3569768\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This paper presents the Debugging C Compiler (DCC), a system that composes a suite of compilers with static and dynamic analysis tools to support introductory C programming students. Using C in our introductory computing courses exposes students to low-level mechanics of the operating system, such as pointers and manual memory management - concepts critical in establishing a solid foundation of computing. Unlike typical C implementations, DCC provides programmers with enhanced, approachable run- and compile-time checking and messages. DCC clarifies C's cryptic operating system errors such as segmentation faults and alleviates the need for students to analyse memory dumps and tackle undefined behaviours. This paper describes DCC's implementation and features, and measures the tool's efficacy in aiding novice C programmers. We further present our deep reflections as to how DCC has enabled us to continue to use C in our large introductory programming courses, with an estimated five million compilations to date. Our research also outlines avenues for future work, which we hope will support others in delivering a foundations-first approach to introductory programming.\",\"PeriodicalId\":371326,\"journal\":{\"name\":\"Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1\",\"volume\":\"10 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-03-02\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3545945.3569768\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3545945.3569768","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
摘要
本文介绍了调试C编译器(Debugging C Compiler, DCC),它是一个包含静态和动态分析工具的编译器套件,用于支持C编程入门学生。在我们的计算机入门课程中使用C可以让学生了解操作系统的底层机制,例如指针和手动内存管理——这些概念对于建立坚实的计算基础至关重要。与典型的C实现不同,DCC为程序员提供了增强的、可接近的运行时和编译时检查和消息。DCC澄清了C的隐式操作系统错误,如分段错误,减轻了学生分析内存转储和处理未定义行为的需要。本文描述了DCC的实现和特点,并测量了该工具在帮助新手C程序员方面的有效性。我们进一步提出了关于DCC如何使我们能够继续在我们的大型入门编程课程中使用C的深刻思考,迄今为止估计有500万次编译。我们的研究还概述了未来工作的途径,我们希望这将支持其他人为入门编程提供基础优先的方法。
Foundations First: Improving C's Viability in Introductory Programming Courses with the Debugging C Compiler
This paper presents the Debugging C Compiler (DCC), a system that composes a suite of compilers with static and dynamic analysis tools to support introductory C programming students. Using C in our introductory computing courses exposes students to low-level mechanics of the operating system, such as pointers and manual memory management - concepts critical in establishing a solid foundation of computing. Unlike typical C implementations, DCC provides programmers with enhanced, approachable run- and compile-time checking and messages. DCC clarifies C's cryptic operating system errors such as segmentation faults and alleviates the need for students to analyse memory dumps and tackle undefined behaviours. This paper describes DCC's implementation and features, and measures the tool's efficacy in aiding novice C programmers. We further present our deep reflections as to how DCC has enabled us to continue to use C in our large introductory programming courses, with an estimated five million compilations to date. Our research also outlines avenues for future work, which we hope will support others in delivering a foundations-first approach to introductory programming.