For _programming_ for a 9 years old, I'd probably use an IDE.
Easier to teach to press a button than to type "gcc test.c; test" in a window. Plus, built-in debugger would allow to step through the code and see it in action. I still remember the thrill of first real debugger session in Turbo Pascal 5.5.
Or, I might just add a button to emacs. And it supports debugging too. But then emacs turns into an IDE, and the whole question becomes moot.