We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
we are using cypress fx-2 development board which has an evaluation version of c-51 compiler (for 8051 microcontroller). we want to include ansi c library functions like fread, fwrite , malloc etc and compile the code and port it into the target board. bcause the above mentioned ansi c library is not supported by c-51, is there any other way of acheiving the ansi c library porting? if so, then please explain how.. also, will it run on the 8051 microcontroller? Urgent reply is appreciated. Regards, mahesh
malloc is supported - see the manual. However, dynamic memory allocation is usually a Bad Idea on embedded systems! fread, fwrite, etc are file functions - so you'll have to implement your own file system. Part of that implementation will included providing appropriate fread, fwrite, etc!