This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

No header files installed

Hi -
I've installed the eval version of the C51 compiler as we are searching for a tool to use in and upcoming project. I've noticed that many of the standard C header files are not found. In particular time.h does not get installed into the INC folder. Would someone explain if the Keil tools come with all of the libraries or do we need to download and install a more comprehensive library.

Any help would be appreciated.
thanks

  • I've noticed that many of the standard C header files are not found.

    C51 actually already implements more headers than the Standard requires. If it appears differently to you, that's because you're not aware of one critical distinction. C51 is, both by claim and by necessity, what the C Standard calls a "freestanding implementation". For those the Standard requires only a grand total of 4 header files. C51 provides a good deal more than those, but not the entire library --- nor is it required to.

    In particular time.h does not get installed into the INC folder.

    You're looking at a toolchain targetting really rather small and simple microcontrollers, which basically never come with any way to tell wall-clock time. There's just no sane way <time.h> functions could be implemented for those in a sufficiently generic way to be useful.

    Would someone explain if the Keil tools come with all of the libraries or do we need to download and install a more comprehensive library.

    I suspect you're asking the wrong question there. Your question should probably be: is an 8051 even remotely the right tool for the job you have in mind?