Quiz

Questions 1 and 2 are based on the following scenario:

You're designing a game. Your publisher has told you that the minimum required processor is an Intel® Pentium® III processor running at 500MHz, but that the recommended processor is a Pentium 4 processor running at 1.5 GHz.


1. In order to create an executable file that will perform optimally on the recommended system, but still run on the required system, which of the following combination of compiler options should you use?

A) -G7 -QaxW
B) -G6 -QxK
C) -G6 -QaxW


2. In order to create an executable file that will perform optimally on the required system, but that will still run on the recommended system, which of the following combination of compiler options should you use?

A) -G7 -QaxW
B) -G6 -QxK
C) -G6 -QaxW


3. Which of the following compiler options schedule instructions to be optimal for the Pentium 4 processor's instruction latencies and cache sizes?

A) -QxW
B) -QaxW
C) -O3
D) -G7


4. What does the compiler option-QaxW (-axW on Linux*) do?

A) Exclusively optimizes for the Pentium 4 processor
B) Schedules instructions optimally for the Pentium 4 processor
C) Generates code that runs on all IA-32 processors, but takes advantage of SSE2 extensions when running on Pentium 4 and later processors.