You can pass through any options with the pass through command.
$ qcc -Wc,-mcpu=pentium -O2 -c file.c
$ qcc -Wc,-march=pentium -O2 -c file.c
What’s the difference? The first optimises for Pentium timings, whereas
the second will actually use Pentium specific instructions, without trying
to maintain 386 compatibility.
GCC 2.95.2 supports the following processor types:
i586 or pentium
i686 or pentiumpro
Note that yet more optimiser bugs may show up if you do this… :v)
Also note that the latest development branch of GCC (soon to be
released as GCC 3.0) adds athlon support.
Warren Peece <email@example.com> wrote:
From what I’ve read, it’s “highly recommended” that I use “cc” or “qcc” to
compile my programs. If I were to do so, how do I specify which type of CPU
I’d like to optimize for? It seems silly to optimize for the default 386 CPU
when I’m running dual PIII’s…
What exactly are the tradeoffs involved with using cc/qcc or gcc?