Thompson and Ritchie were among the first to realize that hardware and compiler technology had become good enough that an entire operating system could be written in C and by 1978 the whole environment had been successfully ported to several machines of different types.