Skip to main content Accessibility help
×
Hostname: page-component-76dd75c94c-vpfzz Total loading time: 0 Render date: 2024-04-30T08:12:43.809Z Has data issue: false hasContentIssue false

7 - A Software Build System

Published online by Cambridge University Press:  07 October 2009

John H. Reppy
Affiliation:
University of Chicago
Get access

Summary

A natural application of concurrency is the management of multiple independent tasks. For example, building a large C program involves a number of individual compilations, each of which is run as a separate UNIX command. Since these compilations are independent, they may be run at the same time (possibly on different machines). In this chapter, we describe the implementation of a “parallel” build system using CML.

The problem

The basic problem is that we are given a set of objects, and a set of dependencies between the objects. Associated with some objects is an action that describes how to build the object; other objects (e.g., source files) do not have associated actions. Taken together, they form an acyclic dependency graph, whose topological order defines the order in which objects should be built. We use the term antecedents to denote the nodes that a node depends on, and successors to denote the nodes that depend on it. The nodes of the graph are classified into internal nodes (those that have non-zero in-degree), leaf nodes (those with no antecedents), and the root node (which has no successors). We restrict ourselves to graphs with exactly one root. For the graph to be well formed, any internal node should have an associated action. Leaf nodes may also have actions.

Also associated with each object is a timestamp that tells when the object was last built or modified.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1999

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • A Software Build System
  • John H. Reppy, University of Chicago
  • Book: Concurrent Programming in ML
  • Online publication: 07 October 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511574962.009
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • A Software Build System
  • John H. Reppy, University of Chicago
  • Book: Concurrent Programming in ML
  • Online publication: 07 October 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511574962.009
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • A Software Build System
  • John H. Reppy, University of Chicago
  • Book: Concurrent Programming in ML
  • Online publication: 07 October 2009
  • Chapter DOI: https://doi.org/10.1017/CBO9780511574962.009
Available formats
×