> > > But anyhow, is there any other way to obtain the target triplet (or at least the target processor that gcc would actually build for, depending on the switches being passed? > > gcc -m32 -Q --help=target | fgrep -- -march > Many thanks, that's exactly what I was asking for. :-) Argh - I should have looked better: That's not really usable because it does not give the right result for 64 bit: $ gcc -Q --help=target | fgrep -- -march -march= x86-64 Thus, for 64 bit we get x86-64 instead of x86_64. To me, that looks like a typo that's worth to be fixed. Is it worth to file a bug report for this? Cheers, Chris