Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

ISBN: 0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

Why is it important for a firm to conduct career development?

Answered: 1 week ago