首页> 外文期刊>SIGCSE bulletin >Dereferee: Exploring Pointer Mismanagementin Student Code
【24h】

Dereferee: Exploring Pointer Mismanagementin Student Code

机译:被推荐人:探索学生代码中的指针管理不善

获取原文
获取原文并翻译 | 示例
           

摘要

Dynamic memory management and the use of pointers are critical topics in teaching the C++ language. They are also some of the most difficult for students to grasp properly. The responsibility of ensuring that students understand these concepts does not end with the instructor's lectures-a library enhanced with diagnostics beyond those provided by the language's run-time system itself is a useful tool for giving students more detailed information when their code fails. We have designed such a toolkit, Dereferee, which students can incorporate into their code with minimal intrusion into the learning process. To demonstrate its effectiveness, we examine C++ code from students in a course that relied solely on the built-in memory management behavior of the language, without any significant additional diagnostic or debugging facilities. We instrument this code with Dereferee in order to explore the causes of errors that result in program crashes and to expose hidden faults that previously lay undetected. Dereferee provided enhanced diagnostics for bugs in 63% of student submissions, and pinpointed the source of 83% of abnormal program terminations. 95% of the students would have received extra diagnostic help from using Dereferee.
机译:动态内存管理和指针的使用是教授C ++语言的关键主题。对于学生来说,它们也是最难掌握的部分。确保学生理解这些概念的责任不会随讲师的讲课而结束-除语言运行时系统本身提供的诊断功能之外,增强了诊断功能的库是一个有用的工具,可在代码失败时为学生提供更多详细的信息。我们设计了Dereferee这样的工具包,学生可以在不影响学习过程的情况下将其合并到他们的代码中。为了证明其有效性,我们在仅依赖该语言的内置内存管理行为的课程中检查了学生的C ++代码,而没有任何其他重要的诊断或调试功能。我们使用Dereferee对该代码进行检测,以探究导致程序崩溃的错误原因,并揭示以前未发现的隐藏故障。 Dereferee为63%的学生提交的错误提供了增强的诊断功能,并指出了83%异常程序终止的原因。 95%的学生将通过使用Dereferee获得额外的诊断帮助。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号