I'm using SDCC 3.9.0 on Windows 10 to compile simple programs for the WCH CH551 (enhanced 8051 core) device. So far I've met with great success and am enjoying using SDCC. A friend pointed out what we both thought to be odd behavior and wanted to see if this was intended or not. I've not been able to find any similar questions posted or in fact any definitive information on this topic. If the main() function in my code returns (whether or not it returns a value or not), main() starts over again....
STM32F7 project template