I have used tcc as a scripting language in the past. I expect that if your shell script catches the compilation, that sort of approach will satisfy your requirements, even if tcc itself does not.
And the original TCC code is not easy to understand. It is a lot cleverer than I can cope with!