On 2/23/08, David Daney <ddaney@xxxxxxxxxx> wrote: > > So I was wondering: what is there in GCC > > (except generating the actual assembler instructions) that is specific > > for the target that GCC was configured for? > > > Look in the GCC sources in the gcc/config/* directories. Each of these > target specific directories contains code for GCC's target. GCC's > architecture is such that only a single target is allowed for any given > instance of GCC. Could you in theory configure one *build* of gcc to target multiple platforms? Something like this: ./configure --target=x86_64-pc-mingw32 --target=i686-pc-mingw32 --target=x86_64-pc-linux And have the resulting 'make install' create a set of binaries prefixed appropriately once for each target?