Portable bytecodes predate Windows and Macintosh, and maybe DOS too. (The Z Machine).