My company is developing a "C" based microcontroller system using an ARM for a specific application, as well as a general purpose embedded controller. We are using the Windows XP based Keil tools and we have an embedded expert using Keil tools to develop the architecture and API's within the ARM space.
Here is the issue:
We plan to to sell the general purpose controller system to the general public. We could do so with the Keil compiler if we could trust customers to program the controller's I/O's, A/D's and serial ports using the API's only. One could get into much trouble with pointers and built-in timer calls etc.. as they could crash the system. We are using an RTOS.
A potential solution:
What I need is a Mini-C pre compiler that will restrict the user to the API, logical, and arithmetic functions only in "C". I still need debugging features. Output of the compiler would be a .c file or equivalent to be compiled in the background using the Keil compiler. Where could I find such a pre-compiler or developer? Could the GNU compiler be modified? We do not want to develop a compiler from scratch. Am I crazy? Russ[/color]