Porting to another OS?
Just curious, what are the steps need to be done to port this compiler to another OS, say Linux or MacOS? Probably would make a challenging programming exercise for me... :) :D
Hi, in order to port this compiler to other OS, but the same arch (x64), the first thing that need to be changed is Linker module (you need to craft compatible binary format for target OS). The second thing to modify is the Generator module. Although it's pretty much OS independent, but at the moment, the code generation for procedure calls is totally according to Windows x64 convention (https://en.wikipedia.org/wiki/X86_calling_conventions). If you want to target Linux, you need to change that part too