Homework 9

Libraries

Some of the questions below ask you to explain a reason for something. You may use the examples given in lecture, or you may make up your own. However, you must explain the reason in a few sentences.

  1. Provide a reason for re-using requirements and design documents from a previous project in a new project. (2 pts.)
  2. Provide a reason for re-using source code from a previous project in a new project. (2 pts.)
  3. Provide a reason for re-using object code developed in a previous project in a new project. (2 pts.)

Marshalling

  1. What is meant by the term ``marshalling?'' (2 pts.)

Note: the question above should have the number "4" in front of it. If it doesn't, then the Javascript that I'm using to number questions in this homework is failing in your browser. You can either keep track of the question numbers yourselves as you move through the homework, or, try viewing this homework in a different browser.

ar and g++

  1. What is the advantage of using a single .a file instead of a bunch of .o files? (1 pt.)
  2. Why does the compiler need the original .h files when linking with libraries? (1 pt.)

Submission

Please submit homework 9 by placing your answers in a text file (not MS Word, not PDF, just plain text) and uploading the file to the moodle.