Combining Processor Target and Dispatch Options

Suppose that you had the following requirements for your application:

  • The application must always require the MMX™ technology extensions.
  • The application must use Pentium® Pro processor extensions when the processor on which it is run offers them, and not use them when it does not.

You could meet those requirements with the following command line:

prompt>icl -O2 -G6 -QxM -Qaxi myprog.cpp

-QxM restricts the application to run only on Pentium processors with MMX technology or better. If you wanted to enable the application to run on earlier generations of Intel 32-bit processors as well, you would use the following command line:

prompt>icl -O2 -G6 -QaxiM myprog.cpp

Note: "-QaxiM" is the same as "-Qaxi -QaxM"