Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given: You work at Microsoft, as an engineer in HW Platform Support. Visual Studio compiler translates C++ code to $_{16}$-bit machine code instructions under the
Given: You work at Microsoft, as an engineer in HW Platform Support. Visual Studio compiler translates C++ code to $_{16}$-bit machine code instructions under the optimization levels listed below. A client's $\mathrm{C}++$ program compiles without optimization to 1024 machine language instructions and executes in $20 \mathrm{msec}$. \begin{tabular}{IC CICC) \hline Opt. Level & Optimization None: 700 off & Normalized baseline translation & Normalized Space Performance \hline 101 & Minimum Size: fewer Assembly Instructions & $1.0 \mathrm{sec) $ & $1 \mathrm{-KB]$ \hline & Maximum Speed: 102 & loop statements "unrolled"/replicated to eliminate forext statements & $0.6 \mathrm{sec} $ & $1 \mathrm{MB] $ \hline \end{tabular) Sought: While at a tradeshow showcasing VS Premium's new release, the client asks you the performance improvement expected for his program using VS compiler optimizations Partial Credit 1: What is the program's execution time when using 701 optimization? Partial Credit 2: What is the code size when using /01 optimization, as expressed in units of Bytes? Partial Credit 3: What is the program's execution time when using /02 optimization? CS.VS. 1039
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started