harpoon.Backend.PreciseC
Class PGCNiftyAllocationStrategy
java.lang.Object
harpoon.Backend.Runtime1.AllocationStrategy
harpoon.Backend.Runtime1.MallocAllocationStrategy
harpoon.Backend.Runtime1.NiftyAllocationStrategy
harpoon.Backend.PreciseC.PGCNiftyAllocationStrategy
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- PGCNiftyAllocationStrategyWithStats
public class PGCNiftyAllocationStrategy
- extends NiftyAllocationStrategy
PGCNiftyAllocationStrategy
uses alloca()
instead of NSTK_alloc
to do stack allocation. Other
than this, it is identical to NiftyAllocationStrategy
.
- Version:
- $Id: PGCNiftyAllocationStrategy.java,v 1.2 2002/02/25 21:02:09 cananian Exp $
- Author:
- 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 |
PGCNiftyAllocationStrategy
public PGCNiftyAllocationStrategy(Frame f)
- Creates a
PGCNiftyAllocationStrategy
.
memAlloc
public Exp memAlloc(TreeFactory tf,
HCodeElement source,
DerivationGenerator dg,
AllocationInformation.AllocationProperties ap,
Exp length)
- Description copied from class:
AllocationStrategy
- Return a
Tree.Exp
created with the given
TreeFactory
that returns a pointer to a piece of
memory length
bytes long.
- Overrides:
memAlloc
in class NiftyAllocationStrategy