harpoon.Backend.Runtime1
Class AllocationStrategy
java.lang.Object
harpoon.Backend.Runtime1.AllocationStrategy
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AppelAllocationStrategy, MallocAllocationStrategy, NullAllocationStrategy
public abstract class AllocationStrategy
- extends Object
- implements Serializable
An AllocationStrategy
is a particular implementation
of a memory allocation routine.
- Version:
- $Id: AllocationStrategy.java,v 1.3 2003/04/19 01:03:55 salcianu Exp $
- Author:
- Duncan Bryce <duncan@lcs.mit.edu>, C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllocationStrategy
public AllocationStrategy()
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.