I'm trying to build gcc compiler to producing executables that are supposed to run on x86-64 machines. I'm actually using existing 64bit gcc compiler on my computer. It is redundant but I'm doing it for learning purposes.
The problems is, I don't know how do I specify --target option. What should I type there? Would simply typing "x86-64" work?
What if I wanted the cross compiler to be producing executables for x86 machines and is supposed to be running on another x86-64 bit machine in order to compile the source code?, what keyword should I use for setting target and host?
I would like to know if there is any gcc manual specifying supported architectures for host and target machines and the right commands to specify them.