ACM Home Page
Please provide us with feedback. Feedback
Efficient implementation of the first-fit strategy for dynamic storage allocation
Full text PdfPdf (1.05 MB)
Source ACM Transactions on Programming Languages and Systems (TOPLAS) archive
Volume 11 ,  Issue 3  (July 1989) table of contents
Pages: 388 - 403  
Year of Publication: 1989
ISSN:0164-0925
Author
R. P. Brent  Australian National Univ., Canberra, ACT, Australia
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 18,   Downloads (12 Months): 103,   Citation Count: 8
Additional Information:

abstract   references   cited by   index terms   review   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/65979.65981
What is a DOI?

ABSTRACT

We describe an algorithm that efficiently implements the first-fit strategy for dynamic storage allocation. The algorithm imposes a storage overhead of only one word per allocated block (plus a few percent of the total space used for dynamic storage), and the time required to allocate or free a block is O(log W), where W is the maximum number of words allocated dynamically. The algorithm is faster than many commonly used algorithms, especially when many small blocks are allocated, and has good worst-case behavior. It is relatively easy to implement and could be used internally by an operating system or to provide run-time support for high-level languages such as Pascal and Ada. A Pascal implementation is given in the Appendix.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
2
 
3
BOZMAN, G., BUCO, W., DALY, T. P., ANO TETZLAFF, W. H. Analysis of free-storage algo-{ rithms--revisited. IBM Syst. J. 23, 1 (1984), 44-64.
 
4
BRENT, R.P. Efficient implementation of the first-fit strategy for dynamic storage allocation. Australian Comput. Sci. Commun. 3, 1 (May 1981), 25-34.
 
5
BRENT, R.P. Efficient implementation of the first-fit strategy for dynamic storage allocation. Rep. CMA-R33-84, Centre for Mathematical Analysis, Australian National University, Aug. 1984.
 
6
BRENT, R.P. Dynamic storage allocation on a computer with virtual memory. Rep. CMA-R37- 84, Centre for Mathematical Analysis, Australian National University, Sept. 1984.
7
 
8
GEROVAC, B.J. An implementation of new and dispose using boundary tags. Pascal News 19 (Sept. 1980), 49-59.
 
9
HrXT, J.B. A storage management laboratory. Aust. Comput. Sci. Commun. 2, 1 (Jan. 1980), 185-193.
10
11
 
12
 
13
14
 
15
ROBSON, J.M. Worst case fragmentation of first fit and best fit storage allocation strategies. Comput. J. 20, 3 (Aug. 1977), 242-244.
16
17
18
19

CITED BY  8


REVIEW

"Gerald David Chandler : Reviewer"

This paper describes the many types of dynamic memory allocation strategies and discusses the many possible implementation algorithms for each. Perhaps the most commonly used strategy is first-fit, in which a list is maintained of the  more...