The sketch at IOT_with_your_PC/ESP32Program.zip at master · rlunglh/IOT_with_your_PC · GitHub implements a C Language Interpreter on the ESP32 using the Arduino IDE to create and upload the sketch to your ESP32. This is a fairly complete C Interpreter and it includes addition for AnalogWrite, digitalWrite, pinMode, and enhanced servo functions all tailored to make the most of the ESP32.
The attachment gives a thorough introduction and illustrates the C Interpreter in action.
The C Interpreter includes Debug support in a step by step trace of program execution using conditional calls to Debug and stopDebug functions along with Watch and dropWatch functions that can be conditionally called that report variable values during execution.
The ESP32 is used since it is the only processor supported in the Arduino IDE that has the memory resources and file system support needed to host the interpreter.
ESP32_picoc_C_Language_Interpreter.pdf (1.91 MB)