Purchase Solution

Coding Time in C

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

Solution Summary

This solution clearly discusses time taken by a program in coding, execution. It clearly discusses coding of a program in C and also in Assembly code by taking an example.

Solution Preview

The 3 strategies can be compared based on i) Time taken to write the program ii) Time taken by program to execute.

a) If the entire program is written in C it would take only 100 man hours but it will take 100 hours ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.