Sciweavers

SIGCSE
2009
ACM

Dereferee: exploring pointer mismanagement in student code

14 years 5 months ago
Dereferee: exploring pointer mismanagement in 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 builtin 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 p...
Anthony Allevato, Manuel A. Pérez-Qui&ntild
Added 24 Nov 2009
Updated 24 Nov 2009
Type Conference
Year 2009
Where SIGCSE
Authors Anthony Allevato, Manuel A. Pérez-Quiñones, Stephen H. Edwards
Comments (0)