I was just trying to understand something about cross compilers which made me ask this question.
gcc
is a cross-compiler.
By default what it the target architecture for gcc
compilation if none is specified is the native target on which I am compiling the source. Correct ?
If the above is correct then how does it manage to generate the code for several different architectures even when it is explicitly specified ?
Shouldn't it have to know all the ISA's ? How is this managed ? Do they have all the information for all the existing ISA's ?