> > That's exactly what i thought when i see all the > malloc's in OpenOcd. I think, that there are still > a lot of memory leaks there. Are there any plans too switch > over to C++? There could be some great base classes > with virtual functions for the drivers and all this > allocation stuff could be handled in classes.
Nooo! Don't start this again! :) I was actually just talking with a friend about C++ and virtual tables. We might actually see a significant performance hit with virtual functions. My case in point is the NAND driver. If the driver doesn't have a better read page function, we just sit there and call a read function on a controller over and over again until we read enough. This could be bad if we also have to look up the virtual table to get the right function. This might cause issues for ZY1000, if I understand how that system works :). // Dean Glazeski
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development