On Fri, 16 Sept 2022 at 20:51, Jackson Pfeffer <crazykidjack@xxxxxxxxx> wrote: > > I shouldn't assume (you know what happens)... But I assume they are asking how to compile GCC from source on a machine running (for example) some ARM chip running Linux to get an executable GCC that will run on (for example) an Intel x64 chip running windows. > > I assume (there it is again) that they are compiling on one well known "architecture" targeting another well known (but different) "architecture". > > I'm a GCC noob, but I think this basically amounts to them needing a cross compiler. Indeed, I should have said that the fist link on the osdev wiki covers that case (which is much simpler than porting GCC to a brand new architecture). See https://wiki.osdev.org/GCC_Cross-Compiler for cross compiler details. That's all you need to be able to use one type of machine to compile code for a different type of machine.