The old Apple II+ I had as a kid only did one process at a time. For an OS, it basically had what amounted to a REPL for Microsoft BASIC.
You don't need to host another program to compile something. All you need to do is to read data off disk, then write other data back.