Jump to content

File:Structure and Interpretation of Computer Programs p.764a.gif

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Structure_and_Interpretation_of_Computer_Programs_p.764a.gif (575 × 349 pixels, file size: 13 KB, MIME type: image/gif)

This image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}.


It is recommended to name the SVG file “Structure and Interpretation of Computer Programs p.764a.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.

Summary

Description
English: (From the description p.761 (733) in the pdf file):

Stop-and-copy garbage collection: memory is divided in two halves: working memory and free memory. When cons constructs pairs, it allocates these in working memory. When working memory is full, we perform garbage collection by locating all the useful pairs in working memory and copying these into consecutive locations in free memory. (The useful pairs are located by tracing all the car and cdr pointers, starting with the machine registers.) Since we do not copy the garbage, there will presumably be additional free memory that we can use to allocate new pairs. In addition, nothing in the working memory is needed, since all the useful pairs in it have been copied. Thus, if we interchange the roles of working memory and free memory, we can continue processing; new pairs will be allocated in the new working memory (which was the old free memory). When this is full, we can copy the useful pairs into the new free memory (which was the old working memory).

The description assumes a Lisp architecture. The diagram illustrates the situation right before garbage collection.

Date
Source
image extraction process
This file has been extracted from another file
: Structure and Interpretation of Computer Programs (Second Edition).pdf
p.764 (736)
original file
Author Massachusetts Institute of Technology, Harold Abelson and Gerald Jay Sussman with Julie Sussman
Other versions File:Structure and Interpretation of Computer Programs p.764a.gif * File:Structure and Interpretation of Computer Programs p.764b.gif

Licensing

(license inherited from original pdf file:)

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

30 June 2020

image/gif

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:46, 4 July 2020Thumbnail for version as of 12:46, 4 July 2020575 × 349 (13 KB)Jochen BurghardtUploaded a work by Massachusetts Institute of Technology, Harold Abelson and Gerald Jay Sussman with Julie Sussman from File:Structure and Interpretation of Computer Programs (Second Edition).pdf, p.764 (736) with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file: