For a certain program 1 of the code accounts for 50 of the


For a certain program, 1% of the code accounts for 50% of the execution time. Compare the following strategies with respect to programming time and execution time. Assume that it would take 100 man-months to write it in C, and that assembly code is 10 times harder to write and four times more efficient. Also assume it would take 100 hours in execution if entire program is written in C.

a. Entire program in C.

b. Entire program in assembly.

c. First in C, then the key 1% rewrite in assembly.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: For a certain program 1 of the code accounts for 50 of the
Reference No:- TGS01248567

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)