From: Sergei S. <Sergei.Sharonov@Halliburton.com> - 2009-02-27 17:48:04
|
Steve, > -----Original Message----- > The stdio.h seems incomplete - FILE and fopen(), fclose(), etc. > appear to be missing. This is raising havoc with a port I'm > working on which is > "ANSI" C. I'm puzzled how a C99 compiler and libc can have > a subset of > stdio These functions usually end up hooking into your OS through unbuffered low level calls such as read, write, open, close, etc. if you have any decent OS on your target. In case of MSP430 it likely that you don't. You will have to come up with a device driver model and implement it. Take a look how it is done in newlib. http://neptune.billgatliff.com/newlib.html To tell the truth I am not sure where libc in mspgcc project originated from. Anybody? I think mspgcc has only rudimentary libc api, see http://mspgcc.sourceforge.net/manual/x1109.html BTW, I suspect fopen and fclose assume some sort of a filesystem that you probably don't have either. Regards, Sergei ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. |