The C I/O functions are too big for your device with 512 bytes of RAM. You probably can get away with a sprintf() and a UART implementation. I'll also note you don't have any code to talk to the UART. If you want it to work with putty, you'll need to include that.
A quick google search finds http://www.msp430launchpad.com/2012/06/using-printf.html which is a simple printf to UART implementation.