Quiz

Questions 1-3 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® 4 processor running at 2.0 GHz, but that the recommended processor is a Pentium 4 processor running at 3.0 GHz with support for Streaming SIMD Extensions 3 (SSE3).


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 -QaxP
B) -G7 -QxP
C) -G7 -QaxN


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 -QaxP
B) -G7 -QxN
C) -G6 -QaxP


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

A) -G7 -QaxN
B) -G7 -QxNP
C) -G7 -QaxNP


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

A) -QxN
B) -QaxN
C) -O3
D) -G7


5. What does the compiler option-QaxN (-axN 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 Streaming SIMD Extensions 2 (SSE2) extensions when running on Pentium 4 and later processors.