harpoon.Backend.Runtime1
Class AllocationStrategy

java.lang.Object
  |
  +--harpoon.Backend.Runtime1.AllocationStrategy
Direct Known Subclasses:
AppelAllocationStrategy, MallocAllocationStrategy, NullAllocationStrategy

public abstract class AllocationStrategy
extends Object

An AllocationStrategy is a particular implementation of a memory allocation routine.

Version:
$Id: AllocationStrategy.java,v 1.2 2002/02/25 21:02:19 cananian Exp $
Author:
Duncan Bryce <duncan@lcs.mit.edu>
, C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
AllocationStrategy()
           
 
Method Summary
abstract  Exp memAlloc(TreeFactory tf, HCodeElement source, DerivationGenerator dg, AllocationInformation.AllocationProperties ap, Exp length)
          Return a Tree.Exp created with the given TreeFactory that returns a pointer to a piece of memory length bytes long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllocationStrategy

public AllocationStrategy()
Method Detail

memAlloc

public abstract Exp memAlloc(TreeFactory tf,
                             HCodeElement source,
                             DerivationGenerator dg,
                             AllocationInformation.AllocationProperties ap,
                             Exp length)
Return a Tree.Exp created with the given TreeFactory that returns a pointer to a piece of memory length bytes long.