Hello,
I'm trying to stuff a lot of code into one of those dern small "MSP430Gxxx Value Line" processors with only 2K of flash. In an effort to optimize my footprint, I've been combing through the map files generated by the linker to figure out what I can cut. Interestingly, the map file always includes malloc from memory.obj in rts430.lib regardless of what my code has in it. Now why would that be? I'm not using printf() (nor any of it's friends), my heap is set to 0 bytes, and I'm doing no dynamic memory allocation that I am aware of. So somewhere, the RTS code is referencing malloc, and it's using up a precious 0xa8 of bytes to do it. I know that sounds small, and I know the problem would go away by using a chip with 4k or 8k of flash, but I'm still kind of wondering why. Any ideas?