|
From: | John Regehr |
Subject: | Re: [avr-gcc-list] problem with malloc() in avr-libc 1.6.1 |
Date: | Tue, 29 Jan 2008 10:45:22 -0700 (MST) |
User-agent: | Alpine 1.00 (DEB 882 2007-12-20) |
My observation (from watching a few hundred students) is that debugging on an MCU is so hard that once you have added a few nasty pointer bugs into your code base, your chances of getting back to a totally reliable piece of software are not that good.
Also in the code you sent, you did not check the return value from malloc() for null. On a small-memory platform this kind of check is not optional.
John Regehr
[Prev in Thread] | Current Thread | [Next in Thread] |